Self-hosted action runner
All checks were successful
Cargo build (Arch Linux) / Check Formatting (push) Successful in 41s
Cargo build (Arch Linux) / Build pacwrap (push) Successful in 1m26s

This commit is contained in:
Xavier Moffett 2024-10-05 23:29:16 -04:00
parent 017a994529
commit 106a5d88d6
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

@ -0,0 +1,47 @@
name: Cargo build (Arch Linux)
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
PACWRAP_SCHEMA_BUILT: 1
jobs:
checkfmt:
name: Check Formatting
runs-on: docker
container:
image: archlinux
strategy:
matrix:
toolchain:
- nightly
steps:
- name: Install packages
run: pacman -Syu 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 formatting
run: cargo fmt --check
build:
name: Build pacwrap
runs-on: docker
container:
image: archlinux
strategy:
matrix:
toolchain:
- stable
steps:
- name: Install packages
run: pacman -Syu 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: Build pacwrap
run: ./dist/tools/prepare.sh release && cargo build --release && ./dist/tools/package.sh release