Luna/.gitea/workflows/build.yaml

27 lines
841 B
YAML
Raw Normal View History

2024-02-04 14:16:01 +01:00
name: Build and test
run-name: ${{ gitea.actor }} is testing and running the code
on: [push]
jobs:
build:
2024-02-04 14:30:30 +01:00
runs-on: ubuntu-20.04
2024-02-04 14:16:01 +01:00
steps:
2024-02-04 14:18:51 +01:00
- name: Check out the code
uses: actions/checkout@v3
2024-02-04 14:39:07 +01:00
- name: Cache dependencies
2024-02-04 14:33:30 +01:00
uses: https://github.com/awalsh128/cache-apt-pkgs-action@latest
2024-02-04 14:24:22 +01:00
with:
2024-02-04 14:38:01 +01:00
packages: build-essential wget nasm git
2024-02-04 14:33:30 +01:00
version: 1.1
2024-02-04 14:39:07 +01:00
- name: Download other dependencies
2024-02-04 14:38:34 +01:00
run: |
apt update
apt install -y cmake ninja-build nasm genext2fs qemu-system
2024-02-04 14:18:51 +01:00
- name: Set up the toolchain
2024-02-04 14:25:59 +01: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-02-04 14:18:51 +01:00
- name: Build and run tests
run: tools/run-tests.sh