Luna/.gitea/workflows/build.yaml

23 lines
729 B
YAML
Raw Normal View History

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:
runs-on: ubuntu-latest
steps:
2024-02-04 13:18:51 +00:00
- name: Check out the code
uses: actions/checkout@v3
- name: Download dependencies
2024-02-04 13:24:22 +00:00
uses: github.com/awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential cmake ninja-build wget nasm genext2fs qemu-system git
version: 1.0
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-02-04 13:18:51 +00:00
- name: Build and run tests
run: tools/run-tests.sh