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