diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..988b644 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,32 @@ +name: ci +on: + push: + pull_request: + workflow_dispatch: + +jobs: + linux-arm64: + # 这个标签对应的镜像自带 clang/lld/cmake/ninja/make/git/python3 + runs-on: aarch64-clang + steps: + - name: checkout + # 不用 actions/checkout:本机拉不到 GitHub,而且这个镜像本来就不需要 + run: | + git clone --depth 1 https://gitea.starcells.ltd/dsh/R8Forge.git . + git log --oneline -1 + + - name: toolchain + run: | + uname -m + clang --version | head -1 + cmake --version | head -1 + ninja --version + + - name: configure + run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release + + - name: build + run: cmake --build build -j"$(nproc)" + + - name: test + run: ctest --test-dir build --output-on-failure -j"$(nproc)"