Skip to content

Commit

Permalink
[WIP] Run build in parallel with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Dec 30, 2023
1 parent 7a978a4 commit 88f6c86
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ jobs:
npm run build
- name: Run tests
run: cargo test --all
push:
if: github.ref == 'refs/heads/cicd' && github.repository == 'brioche-dev/brioche'
needs: test
name: Push artifacts
build:
name: Build artifacts
runs-on: ubuntu-22.04
steps:
- name: Checkout code
Expand All @@ -51,3 +49,24 @@ jobs:
--target=x86_64-unknown-linux-musl \
-Z 'build-std=std,panic_abort' \
-Z 'build-std-features=panic_immediate_abort'
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: |
target/release/brioche
target/x86_64-unknown-linux-musl/release/brioche-ld
target/x86_64-unknown-linux-musl/release/brioche-packed-exec
target/x86_64-unknown-linux-musl/release/brioche-packed-userland-exec
target/x86_64-unknown-linux-musl/release/brioche-packer
push:
name: Push artifacts
if: github.ref == 'refs/heads/cicd' && github.repository == 'brioche-dev/brioche'
needs: [test, build]
runs-on: ubuntu-22.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- run: ls -l
- run: tree

0 comments on commit 88f6c86

Please sign in to comment.