Luna/.gitea/workflows/build.yaml
apio e1c2dfb9ba
Some checks failed
Build and test / build (push) Failing after 9s
Update workflow
2024-02-04 14:39:31 +01:00

27 lines
836 B
YAML

name: Build and test
run-name: ${{ gitea.actor }} is testing and running the code
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Cache dependencies
uses: https://github.com/awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential wget git
version: 1.1
- name: Download other dependencies
run: |
apt update
apt install -y cmake ninja-build nasm genext2fs qemu-system
- name: Set up the toolchain
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
- name: Build and run tests
run: tools/run-tests.sh