Update README.md #5
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: Build | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-pc-windows-msvc | |
- name: Build Windows | |
run: cargo build --release --target x86_64-pc-windows-msvc | |
- name: Upload Windows Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: installer-windows | |
path: target/x86_64-pc-windows-msvc/release/installer.exe | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-apple-darwin,aarch64-apple-darwin | |
- name: Build macOS Intel | |
run: cargo build --release --target x86_64-apple-darwin | |
- name: Build macOS Apple Silicon | |
run: cargo build --release --target aarch64-apple-darwin | |
- name: Create macOS Bundle | |
run: | | |
mkdir -p macos-installers | |
cp target/x86_64-apple-darwin/release/installer macos-installers/installer-intel | |
cp target/aarch64-apple-darwin/release/installer macos-installers/installer-arm | |
chmod +x macos-installers/* | |
- name: Upload macOS Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: installer-macos | |
path: macos-installers/* |