Skip to content

Commit

Permalink
[WIP] Clean up GH Actions artifact creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Dec 30, 2023
1 parent ae419df commit 6516041
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
--target x86_64-unknown-linux-musl \
--component rust-src
- name: Build Brioche
run: cargo build --release
run: cargo build --release --target=x86_64-unknown-linux-gcc
- name: Build brioche-pack
run: |
cargo +"$NIGHTLY_TOOLCHAIN" build \
Expand All @@ -52,17 +52,22 @@ jobs:
--target=x86_64-unknown-linux-musl \
-Z 'build-std=std,panic_abort' \
-Z 'build-std-features=panic_immediate_abort'
- name: Prepare artifact
run: |
mkdir -p artifacts/brioche/x86_64-linux/
cp \
target/x86_64-unknown-linux-gcc/release/brioche \
target/x86_64-unknown-linux-musl/release-tiny/brioche-ld \
target/x86_64-unknown-linux-musl/release-tiny/brioche-packed-exec \
target/x86_64-unknown-linux-musl/release-tiny/brioche-packed-userland-exec \
target/x86_64-unknown-linux-musl/release-tiny/brioche-packer \
artifacts/brioche/x86_64-linux/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: brioche
if-no-files-found: error
path: |
target/release/brioche
target/x86_64-unknown-linux-musl/release-tiny/brioche-ld
target/x86_64-unknown-linux-musl/release-tiny/brioche-packed-exec
target/x86_64-unknown-linux-musl/release-tiny/brioche-packed-userland-exec
target/x86_64-unknown-linux-musl/release-tiny/brioche-packer
path: artifacts/brioche
push:
name: Push artifacts
if: github.ref == 'refs/heads/cicd' && github.repository == 'brioche-dev/brioche'
Expand Down

0 comments on commit 6516041

Please sign in to comment.