Skip to content

feat: Flatpak

feat: Flatpak #494

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "*stable", "wip/*" ]
pull_request:
branches: [ "main", "*stable", "wip/*" ]
workflow_dispatch:
branches: [ "main", "*stable", "wip/*" ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
NVIM_GTK_LOG_FILE: nvim-gtk-stdout.log
NVIM_GTK_LOG_LEVEL: debug
NVIM_GTK_STDERR: nvim-gtk-stderr.log
# Brew update breaks otherwise
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
RUSTFLAGS: -C opt-level=0 -D warnings
jobs:
fedora:
runs-on: [ubuntu-latest]
container:
image: fedora:38
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Lyude/setup-dnf@main
with:
update: true
install: >-
rust
cargo
rustfmt
clippy
atk-devel
glib2-devel
pango-devel
gtk4-devel
- uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --locked
- name: Check that rust-fmt is happy
run: cargo fmt --check -v
- name: Check for clippy lints
run: cargo clippy -- -Dwarnings
osx:
runs-on: [macos-latest]
strategy:
fail-fast: false
matrix:
os: [macos-latest]
rust: [stable]
include:
- os: macos-latest
steps:
- uses: actions/checkout@v3
- name: Update brew
run: brew update
- name: Install dependencies
run: brew install gtk4 pkg-config
- uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --locked
windows:
runs-on: [windows-latest]
strategy:
fail-fast: false
matrix:
os: [windows-latest]
include:
- os: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-gtk4
mingw-w64-x86_64-binutils
mingw-w64-x86_64-gcc
mingw-w64-x86_64-rust
mingw-w64-x86_64-atk
mingw-w64-x86_64-pango
mingw-w64-x86_64-glib2
mingw-w64-x86_64-pkg-config
- uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --locked