#21: Create add
subcommand for the CLI [replacement]
#119
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
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/[email protected] | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev \ | |
webkit2gtk-4.0 libappindicator3-dev \ | |
librsvg2-dev patchelf libdbus-1-dev \ | |
pkg-config | |
- name: Fetch Node.js Dependencies | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: true | |
- name: Check style | |
run: pnpm lint | |
- name: Build Release version | |
run: pnpm tauri build | |
- name: Upload AppImage | |
uses: actions/[email protected] | |
with: | |
name: ark-shelf-desktop.AppImage | |
path: ./src-tauri/target/release/bundle/appimage/*.AppImage | |
- name: Upload .deb build | |
uses: actions/[email protected] | |
with: | |
name: ark-shelf-desktop.deb | |
path: ./src-tauri/target/release/bundle/deb/*.deb | |
- name: Upload binary build | |
uses: actions/[email protected] | |
with: | |
name: ark-shelf-desktop | |
path: ./src-tauri/target/release/ark-shelf-desktop |