Skip to content

Commit

Permalink
Improve CI concurrency and fix macos release
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Sep 12, 2024
1 parent dd32789 commit aa1ffbf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
- releases/**

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
runBenchmark:
if: contains(github.event.pull_request.labels.*.name, 'run-benchmark')
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}

- name: Build
run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
merge_group:
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}

Expand All @@ -20,7 +24,7 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test262.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
merge_group:
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
run_test262:
name: Run the test262 test suite
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/webassembly.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Webassembly demo

on:
pull_request:
branches:
Expand All @@ -10,7 +12,9 @@ on:
merge_group:
types: [checks_requested]

name: Webassembly demo
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check_style:
Expand Down

0 comments on commit aa1ffbf

Please sign in to comment.