Skip to content

Commit

Permalink
trying a blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Feb 12, 2025
1 parent af4b2d9 commit e94f2ec
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 80 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/mac-blocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Mac Blocker
on:
push:
branches-ignore:
- main

jobs:
block:
concurrency:
group: mac-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- run: echo "Blocking mac jobs"
72 changes: 0 additions & 72 deletions .github/workflows/rainix-ubuntu.yaml

This file was deleted.

41 changes: 33 additions & 8 deletions .github/workflows/rainix-mac.yaml → .github/workflows/rainix.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
name: Rainix CI (macOS)
on:
push:
branches:
- main
name: Rainix CI
on: [push]

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

jobs:
mac-tests:
standard-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
task: [ob-rs-test, rainix-rs-artifacts]
include:
# Solidity doesn't need to be tested on multiple platforms
- os: ubuntu-latest
task: rainix-sol-test
- os: ubuntu-latest
task: rainix-sol-static
- os: ubuntu-latest
task: rainix-sol-artifacts
# We don't need to do rust static analysis on multiple platforms
- os: ubuntu-latest
task: rainix-rs-static
# Wasm target doesnt need to run on multiple platforms
- os: ubuntu-latest
task: rainix-wasm-artifacts
- os: ubuntu-latest
task: rainix-wasm-test
# Testing JS/TS bindings doesnt need to run on multiple platforms
- os: ubuntu-latest
task: test-js-bindings
# Legal doesn't need to run on multiple platforms
- os: ubuntu-latest
task: rainix-sol-legal
fail-fast: false
runs-on: macos-latest
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 All @@ -32,6 +56,7 @@ jobs:
submodules: recursive
fetch-depth: 0

# https://github.com/actions/runner-images/issues/2840#issuecomment-2272410832
- run: |
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
Expand Down

0 comments on commit e94f2ec

Please sign in to comment.