From 31f64faacaa0e4bf4d719f4f84d8316f6f7ecddd Mon Sep 17 00:00:00 2001 From: Carlos Mastalli Date: Wed, 23 Oct 2024 10:11:37 +0100 Subject: [PATCH] [ci] Renamed NIX jobs and added ignore rules --- .github/workflows/nix-ci.yml | 45 ++++++++++++++++++++++++++++++++++++ .github/workflows/nix.yml | 19 --------------- 2 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/nix-ci.yml delete mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml new file mode 100644 index 000000000..0a9e5b4f5 --- /dev/null +++ b/.github/workflows/nix-ci.yml @@ -0,0 +1,45 @@ +name: "NIX" + +# This determines when this workflow is run +on: + push: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '.pre-commit-config.yaml' + - '*.md' + - 'LICENSE' + - 'pyproject.toml' + - 'package.xml' + - 'dependencies.rosintall' + pull_request: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '.pre-commit-config.yaml' + - '*.md' + - 'LICENSE' + - 'pyproject.toml' + - 'package.xml' + - 'dependencies.rosintall' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + nix: + runs-on: "${{ matrix.os }}-latest" + strategy: + matrix: + os: [ubuntu, macos] + name: (${{ matrix.os }}) + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + - uses: cachix/cachix-action@v15 + with: + name: gepetto + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build -L diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml deleted file mode 100644 index 0dc882f4b..000000000 --- a/.github/workflows/nix.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: "CI - Nix" - -on: - push: - -jobs: - nix: - runs-on: "${{ matrix.os }}-latest" - strategy: - matrix: - os: [ubuntu, macos] - steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - - uses: cachix/cachix-action@v15 - with: - name: gepetto - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix build -L