GitHub Actions (#1) #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 | |
env: | |
CARGO_TERM_COLOR: always | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev \ | |
webkit2gtk-4.0 javascriptcoregtk-4.1 libappindicator3-dev \ | |
librsvg2-dev patchelf libdbus-1-dev \ | |
pkg-config | |
cargo install tauri-cli | |
- name: Fetch Node.js Dependencies | |
run: npm install | |
- name: Build Release version | |
run: cargo tauri build | |
- name: Upload AppImage | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: ark-tauri.AppImage | |
path: ./src-tauri/target/release/bundle/appimage/ark-tauri_*_amd64.AppImage |