Merge branch 'main' of github.com:p42ul/resotool #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle and Create Artifact | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Bundle resotool (macOS) | |
if: matrix.os == 'macos-latest' | |
run: rustup target add aarch64-apple-darwin && cargo xtask bundle-universal resotool --release | |
- name: Bundle resotool (Windows and Linux) | |
if: matrix.os != 'macos-latest' | |
run: cargo xtask bundle resotool --release | |
- name: Create Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: resotool_${{ matrix.os }} | |
path: ./target/bundled |