ci.yml: archive release builds

This commit is contained in:
hinto.janai 2023-06-04 10:38:12 -04:00
parent e336a370cd
commit 94d41c1297
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -38,6 +38,9 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update sudo apt update
sudo apt install -y libgtk-3-dev sudo apt install -y libgtk-3-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
cargo install cargo-bundle
rustup target install aarch64-apple-darwin
fi fi
shell: bash shell: bash
@ -45,4 +48,17 @@ jobs:
run: cargo test --all-features --profile ${{ matrix.build }} run: cargo test --all-features --profile ${{ matrix.build }}
- name: Build - name: Build
run: cargo build --all-features --profile ${{ matrix.build }} run: |
if [ "$RUNNER_OS" == "macOS" ]; then
cargo bundle --all-features --profile ${{ matrix.build }}
cargo bundle --all-features --profile ${{ matrix.build }} --target aarch64-apple-darwin
else
cargo build --all-features --profile ${{ matrix.build }}
fi
shell: bash
- name: Archive
uses: actions/upload-artifact@v3
with:
name: festival-${{ matrix.os }}
path: target