From 580ed0220152b180e554c574dd93811dea37e84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enis=20Bayramo=C4=9Flu?= Date: Tue, 29 Aug 2023 15:54:53 +0200 Subject: [PATCH 1/4] Update nix.yml to latest setup-nix-with-cache --- .github/workflows/nix.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 7ffe4e2b2..fe67d9be9 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Nix with caching - uses: kadena-io/setup-nix-with-cache@v2 + uses: kadena-io/setup-nix-with-cache/by-root@v3 with: cache_url: s3://nixcache.chainweb.com?region=us-east-1 signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }} @@ -31,6 +31,9 @@ jobs: aws-secret-access-key: ${{ secrets.NIX_CACHE_AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 + - name: Give root user AWS credentials + uses: kadena-io/setup-nix-with-cache/copy-root-aws-credentials@v3 + - name: Build and cache artifacts timeout-minutes: 740 run: | From 6a4700583afe3ca85a4aa7cd7ac53738b89ec2d8 Mon Sep 17 00:00:00 2001 From: June <38109440+DevopsGoth@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:05:08 -0600 Subject: [PATCH 2/4] Update nix.yml --- .github/workflows/nix.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index fe67d9be9..54eff73b0 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -3,17 +3,15 @@ name: Build and cache with Nix on: workflow_dispatch: push: - paths-ignore: - - '.github/**' - jobs: build-and-cache: runs-on: ${{ matrix.os }} + timeout-minutes: 740 strategy: fail-fast: false matrix: - os: [ubuntu-latest, mac-m1] + os: [ubuntu-latest, macos-latest, mac-m1] steps: - name: Checkout repository uses: actions/checkout@v3 @@ -33,9 +31,8 @@ jobs: - name: Give root user AWS credentials uses: kadena-io/setup-nix-with-cache/copy-root-aws-credentials@v3 - + - name: Build and cache artifacts - timeout-minutes: 740 run: | echo Building the project and its devShell nix build .#check --log-lines 500 --show-trace From 79d4b20b083200c6374b7eebdebd00fc26abad30 Mon Sep 17 00:00:00 2001 From: June <38109440+DevopsGoth@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:30:34 -0600 Subject: [PATCH 3/4] Update applications.yml don't trigger this when just updating other workflows --- .github/workflows/applications.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/applications.yml b/.github/workflows/applications.yml index 94e56e192..7ba52e6a6 100644 --- a/.github/workflows/applications.yml +++ b/.github/workflows/applications.yml @@ -4,6 +4,11 @@ name: Build and publish application binaries on: workflow_dispatch: push: + paths: + - '**' + - '!.github/**' + - '.github/workflows/applications.yml' + pull_request_target: types: [ opened ] From 1ee3578635542f05f8d452282b72d68bf6e275d6 Mon Sep 17 00:00:00 2001 From: June <38109440+DevopsGoth@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:44:03 -0600 Subject: [PATCH 4/4] Update nix.yml --- .github/workflows/nix.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 54eff73b0..f32477786 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -3,6 +3,10 @@ name: Build and cache with Nix on: workflow_dispatch: push: + paths: + - '**' + - '!.github/**' + - '.github/workflows/nix.yml' jobs: build-and-cache: @@ -11,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, mac-m1] + os: [ubuntu-latest, macos-latest, macos-m1] steps: - name: Checkout repository uses: actions/checkout@v3