Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Feb 12, 2025
1 parent c1653ab commit 2add47a
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 5 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/rainix-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Rainix CI (macOS)
on: [push]

concurrency:
group: mac-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
standard-tests:
strategy:
matrix:
os: [macos-latest]
task: [ob-rs-test, rainix-rs-artifacts]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
DEPLOY_METABOARD_ADDRESS: ${{ vars.CI_DEPLOY_SEPOLIA_METABOARD_ADDRESS }}
CI_FORK_SEPOLIA_BLOCK_NUMBER: ${{ vars.CI_FORK_SEPOLIA_BLOCK_NUMBER }}
CI_FORK_SEPOLIA_DEPLOYER_ADDRESS: ${{ vars.CI_FORK_SEPOLIA_DEPLOYER_ADDRESS }}
CI_DEPLOY_SEPOLIA_RPC_URL: ${{ secrets.CI_DEPLOY_SEPOLIA_RPC_URL || vars.CI_DEPLOY_SEPOLIA_RPC_URL }}
CI_SEPOLIA_METABOARD_URL: ${{ vars.CI_SEPOLIA_METABOARD_URL }}
CI_DEPLOY_POLYGON_RPC_URL: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL }}
RPC_URL_ETHEREUM_FORK: ${{ secrets.RPC_URL_ETHEREUM_FORK }}
CI_DEPLOY_FLARE_RPC_URL: ${{ secrets.CI_DEPLOY_FLARE_RPC_URL }}
COMMIT_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

# https://github.com/actions/runner-images/issues/2840#issuecomment-2272410832
- run: |
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

Check warning on line 53 in .github/workflows/rainix-mac.yml

View workflow job for this annotation

GitHub Actions / test

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... - uses: DeterminateSystems/magic-nix-cache-action@v2 ...with... - uses: DeterminateSystems/flakehub-cache-action@v2 For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 53 in .github/workflows/rainix-mac.yml

View workflow job for this annotation

GitHub Actions / test

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... - uses: DeterminateSystems/magic-nix-cache-action@v2 ...with... - uses: DeterminateSystems/flakehub-cache-action@v2 For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 53 in .github/workflows/rainix-mac.yml

View workflow job for this annotation

GitHub Actions / git-clean

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... - uses: DeterminateSystems/magic-nix-cache-action@v2 ...with... - uses: DeterminateSystems/flakehub-cache-action@v2 For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 53 in .github/workflows/rainix-mac.yml

View workflow job for this annotation

GitHub Actions / Deploy-Preview

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... - uses: DeterminateSystems/magic-nix-cache-action@v2 ...with... - uses: DeterminateSystems/flakehub-cache-action@v2 For more details: https://dtr.mn/magic-nix-cache-eol

- run: ./pointers.sh

- name: Run ${{ matrix.task }}
env:
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_SEPOLIA_RPC_URL || vars.CI_DEPLOY_SEPOLIA_RPC_URL }}
ETHERSCAN_API_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }}
DEPLOY_VERIFIER: ""
run: nix develop -c ${{ matrix.task }}
6 changes: 1 addition & 5 deletions .github/workflows/rainix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
standard-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
task: [ob-rs-test, rainix-rs-artifacts]
include:
# Solidity doesn't need to be tested on multiple platforms
Expand All @@ -35,10 +35,6 @@ jobs:
task: rainix-sol-legal
fail-fast: false
runs-on: ${{ matrix.os }}
# Add concurrency group for mac jobs
concurrency:
group: ${{ matrix.os == 'macos-latest' && format('mac-{0}', github.ref) || format('ubuntu-{0}', github.ref) }}
cancel-in-progress: true
env:
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
DEPLOY_METABOARD_ADDRESS: ${{ vars.CI_DEPLOY_SEPOLIA_METABOARD_ADDRESS }}
Expand Down

0 comments on commit 2add47a

Please sign in to comment.