Skip to content

0.4.0

0.4.0 #39

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- src/*
- icons/*
- package/*
- .github/workflows/*.yml
- Cargo.toml
pull_request:
branches:
- main
paths:
- src/*
- icons/*
- package/*
- .github/workflows/*.yml
- Cargo.toml
release:
types: [published]
jobs:
commits:
name: commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webiny/[email protected]
linter:
name: linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update && sudo apt install -y libgtk-4-dev libglib2.0-dev
- name: Clippy
run: cargo clippy --all --all-features -- -D warnings
- name: Format
run: cargo fmt --all -- --check
build:
name: ubuntu-latest
runs-on: ubuntu-latest
needs: linter
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
run: sudo apt update && sudo apt install -y libgtk-4-dev libglib2.0-dev
- name: Install cargo-deb
run: cargo install cargo-deb
- name: Build project
run: cargo deb
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: airgorah_amd64.deb
path: ./target/debian/*.deb
if-no-files-found: error
- name: Upload binary
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: ./target/debian/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}