2024-02-04 13:16:01 +00:00
|
|
|
name: Build and test
|
|
|
|
run-name: ${{ gitea.actor }} is testing and running the code
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-02-06 21:43:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-02-04 13:16:01 +00:00
|
|
|
steps:
|
2024-02-04 13:18:51 +00:00
|
|
|
- name: Check out the code
|
|
|
|
uses: actions/checkout@v3
|
2024-02-04 13:40:07 +00:00
|
|
|
- name: Download dependencies
|
2024-02-04 13:38:34 +00:00
|
|
|
run: |
|
2024-02-11 12:39:51 +00:00
|
|
|
apt update
|
2024-12-23 22:05:04 +00:00
|
|
|
apt install -y cmake ninja-build nasm genext2fs qemu-system build-essential wget git clang-format
|
2024-02-04 13:18:51 +00:00
|
|
|
- name: Set up the toolchain
|
2024-02-04 13:25:59 +00:00
|
|
|
run: |
|
|
|
|
wget https://pub.cloudapio.eu/luna/toolchains/ci-toolchain-arm64.tar.gz --quiet
|
|
|
|
tar xf ci-toolchain-arm64.tar.gz
|
|
|
|
rm ci-toolchain-arm64.tar.gz
|
2024-12-23 22:05:04 +00:00
|
|
|
- name: Check formatting
|
|
|
|
run: tools/check-formatting.sh
|
2024-02-04 13:18:51 +00:00
|
|
|
- name: Build and run tests
|
|
|
|
run: tools/run-tests.sh
|