Skip to content

Devel: Allow network access #246

Devel: Allow network access

Devel: Allow network access #246

Workflow file for this run

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:40
- uses: actions/checkout@v3
- name: Create container
run: |
podman build --tag fedora40test -f ./Dockerfile
- name: rustfmt
run: cargo fmt -- --check
- name: Build
run: |
podman run -v $PWD:/workspace -w /workspace --privileged -it fedora40test /root/.cargo/bin/cargo build --verbose
- name: Annotate commit with clippy warnings
run: |
podman run -v $PWD:/workspace -w /workspace --privileged -it fedora40test /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 fedora40test /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
brew link --overwrite python@3.11
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose