name: Build on: workflow_dispatch: pull_request: types: - opened - ready_for_review - synchronize branches: - master env: CARGO_TERM_COLOR: always PACWRAP_SCHEMA_BUILT: 1 PACWRAP_CI: 1 jobs: checkfmt: name: Check format runs-on: ubuntu-latest container: image: archlinux strategy: matrix: toolchain: - nightly steps: - name: Update container run: pacman -Sy archlinux-keyring --noconfirm --needed && pacman -Su --noconfirm - name: Install packages run: pacman -S git nodejs rustup --noconfirm - name: Checkout repository uses: actions/checkout@v4 - name: Install toolchain run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Check format run: cargo fmt --check lint: name: Lint pacwrap runs-on: ubuntu-latest container: image: archlinux strategy: matrix: toolchain: - stable env: PACWRAP_SCHEMA_BUILT: 0 steps: - name: Update container run: pacman -Sy archlinux-keyring --noconfirm --needed && pacman -Su --noconfirm - name: Install packages run: pacman -S base-devel git nodejs rustup --noconfirm - name: Checkout repository uses: actions/checkout@v4 - name: Install toolchain run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Set up environment run: git config --global --add safe.directory '*' - name: Lint pacwrap run: cargo clippy --release -- -Dwarnings build: name: Build pacwrap runs-on: ubuntu-latest container: image: archlinux strategy: matrix: toolchain: - stable steps: - name: Update container run: pacman -Sy archlinux-keyring --noconfirm --needed && pacman -Su --noconfirm - name: Install packages run: pacman -S base-devel bubblewrap busybox fakechroot fakeroot git nodejs rustup --noconfirm - name: Checkout repository uses: actions/checkout@v4 - name: Install toolchain run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Set up environment run: git config --global --add safe.directory '*' - name: Build pacwrap run: ./dist/tools/prepare.sh release && cargo build --release && ./dist/tools/package.sh release