From 94d41c1297b532f254933a9db3cd8f2066e110c9 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Sun, 4 Jun 2023 10:38:12 -0400 Subject: [PATCH] ci.yml: archive release builds --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8adf298..246b912 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,9 @@ jobs: if [ "$RUNNER_OS" == "Linux" ]; then sudo apt update sudo apt install -y libgtk-3-dev + elif [ "$RUNNER_OS" == "macOS" ]; then + cargo install cargo-bundle + rustup target install aarch64-apple-darwin fi shell: bash @@ -45,4 +48,17 @@ jobs: run: cargo test --all-features --profile ${{ matrix.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