Skip to content

Commit

Permalink
Merge branch 'master' into gh-runner-no-space
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp authored Feb 14, 2024
2 parents 6dbdb40 + 361401a commit 0d94925
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 42 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,44 +36,30 @@ jobs:
fuel-nightly,
sway-vim,
]
os: [ubuntu-latest, macos-latest, macos-arm]
os: [ubuntu-latest, macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
# Since the self-hosted runners already have nix and cachix installed, we skip these steps.
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Copy the nix store to a tmp directory for later comparison.
- if: matrix.os == 'macos-arm'
run: ./script/list-nix-store.sh > /tmp/store-path-pre-build
- run: nix build --print-build-logs --no-update-lock-file .#${{ matrix.package }}
# Since we skipped the cachix action, we must manually update the cachix cache.
- if: matrix.os == 'macos-arm'
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: ./script/cachix-push-paths.sh

nix-develop:
needs: nix-build
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-arm]
os: [ubuntu-latest, macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand Down
27 changes: 5 additions & 22 deletions .github/workflows/refresh-manifests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'refresh-manifests'
name: "refresh-manifests"

on:
schedule:
Expand Down Expand Up @@ -36,14 +36,8 @@ jobs:
strategy:
fail-fast: false
matrix:
package:
[
fuel,
fuel-beta-3,
fuel-beta-4,
fuel-nightly,
]
os: [ubuntu-latest, macos-latest, macos-arm]
package: [fuel, fuel-beta-1, fuel-beta-2, fuel-beta-3, fuel-beta-4-rc, fuel-nightly]
os: [ubuntu-latest, macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -55,25 +49,14 @@ jobs:
path: manifests/
- name: stage manifests for nix build
run: git add -v manifests
# Since the self-hosted runners already have nix and cachix installed, we skip these steps.
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Copy the nix store to a tmp directory for later comparison.
- if: matrix.os == 'macos-arm'
run: ./script/list-nix-store.sh > /tmp/store-path-pre-build
- run: nix build --print-build-logs --no-update-lock-file .#${{ matrix.package }}
# Since we skipped the cachix action, we must manually update the cachix cache.
- if: matrix.os == 'macos-arm'
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: ./script/cachix-push-paths.sh

download-manifests-and-commit:
needs: [refresh-and-upload-manifests, download-manifests-and-nix-build]
Expand Down

0 comments on commit 0d94925

Please sign in to comment.