Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use macos-latest-xlarge instead of self-hosted runners #122

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/checkout@v2.4.0
# 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/checkout@v2.4.0
- 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 @@ -54,25 +48,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
Loading