45 lines
No EOL
1.4 KiB
YAML
45 lines
No EOL
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
name: fmt + clippy
|
|
runs-on: shared
|
|
container:
|
|
image: data.forgejo.org/oci/node:22-bookworm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: install just and rustup
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
- name: install toolchains
|
|
run: just setup
|
|
- name: run checks
|
|
run: just check
|
|
|
|
test:
|
|
name: build + test
|
|
runs-on: shared
|
|
container:
|
|
image: data.forgejo.org/oci/node:22-bookworm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: install buiid tools
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends \
|
|
nasm qemu-system-x86 grub-pcpbin grub-common xorriso mtools
|
|
- name: install just and rustup
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
- name: install toolchains
|
|
run: just setup
|
|
- run: just test |