ran formatter #7
Workflow file for this run
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: [pull_request, push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- artifact-name: Windows-x86_64 | |
os: windows-2022 | |
bundle-pattern: "nsis/*.exe" | |
- artifact-name: macOS-x86_64 | |
os: macOS-12 | |
bundle-pattern: "dmg/*.dmg" | |
- artifact-name: macOS-arm64 | |
os: macOS-12 | |
arm64: true | |
bundle-pattern: "dmg/*.dmg" | |
- artifact-name: Linux-x86_64 | |
os: ubuntu-latest | |
bundle-pattern: "deb/*.deb" | |
name: "${{ matrix.artifact-name }}" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set to Windows GNU Rust Toolchain | |
if: matrix.os == 'windows-2022' | |
run: "rustup install 1.69-gnu && rustup default 1.69-gnu" | |
- name: Set to macOS arm64 Rust Toolchain | |
if: matrix.os == 'macOS-12' && matrix.arm64 == true | |
working-directory: src-tauri | |
run: "rustup target install aarch64-apple-darwin;mkdir -p .cargo;touch .cargo/config.toml;echo \"[build]\ntarget = \\\"aarch64-apple-darwin\\\"\" > .cargo/config.toml" | |
- name: Set up Clang | |
if: matrix.os != 'macOS-12' | |
uses: egor-tensin/setup-clang@v1 | |
with: | |
version: latest | |
platform: x64 | |
- name: Linux deps | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install libwebkit2gtk-4.0-dev \ | |
build-essential \ | |
curl \ | |
wget \ | |
file \ | |
libssl-dev \ | |
libgtk-3-dev \ | |
libayatana-appindicator3-dev \ | |
librsvg2-dev | |
- name: Set up npm dependencies and build trajoptlib | |
run: npm install | |
continue-on-error: true | |
- name: Show file tree src-tauri | |
working-directory: src-tauri | |
run: ls | |
- name: Build Package | |
run: npm run tauri build | |
- name: Upload Bundle | |
uses: actions/upload-artifact@v3.1.1 | |
with: | |
name: ${{ matrix.artifact-name }} | |
path: src-tauri/target/**/release/bundle/${{ matrix.bundle-pattern }} |