Build executables #26
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: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install GTK | |
run: sudo apt-get install libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev | |
- name: Cargo binstall | |
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash | |
- name: Clippy | |
run: cargo clippy --workspace --all-features --all-targets | |
- name: Unused dependencies | |
run: | | |
cargo binstall cargo-machete --locked -y | |
cargo machete | |
- name: Fmt | |
run: cargo fmt --all -- --files-with-diff --check | |
build-macos: | |
name: MacOS Bundle | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Install | |
run: pnpm install | |
- name: Save API key to file | |
run: 'echo -n "$APPLE_API_SECRET_KEY" > ${{ github.workspace }}/apple-api-key.p8' | |
shell: bash | |
env: | |
APPLE_API_KEY: ${{ secrets.APPLE_API_SECRET_KEY }} | |
- name: Print sha256sum | |
run: sudo apt-get install --reinstall coreutils && sha256sum ${{ github.workspace }}/apple-api-key.p8 | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }} | |
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY_ID }} | |
APPLE_API_KEY_PATH: ${{ github.workspace }}/apple-api-key.p8 | |
CI: true | |
with: | |
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | |
releaseName: 'App v__VERSION__' | |
releaseBody: 'See the assets to download this version and install.' | |
releaseDraft: true | |
prerelease: false | |
args: ${{ matrix.args }} |