ci: Bump linux container to Fedora 41 #249
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: Rust | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Podman | |
run: | | |
sudo apt update | |
sudo apt-get -y install podman | |
podman pull fedora:41 | |
- uses: actions/checkout@v3 | |
- name: Create container | |
run: | | |
podman build --tag fedora41test -f ./Dockerfile | |
- name: rustfmt | |
run: cargo fmt -- --check | |
- name: Build | |
run: | | |
podman run -v $PWD:/workspace -w /workspace --privileged -it fedora41test /root/.cargo/bin/cargo build --verbose | |
- name: Annotate commit with clippy warnings | |
run: | | |
podman run -v $PWD:/workspace -w /workspace --privileged -it fedora41test /root/.cargo/bin/cargo clippy -- -D warnings | |
- name: Security audit | |
uses: actions-rs/audit-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
run: | | |
podman run -v $PWD:/workspace -w /workspace --privileged -it fedora41test /root/.cargo/bin/cargo test --verbose | |
macos-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
sudo chown -R $(whoami) $(brew --prefix)/* | |
brew update | |
brew upgrade || true | |
brew install pkg-config pango gtk+4 libadwaita gstreamer || true | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |