用 aarch64-clang 标签的 runner,镜像自带 clang/lld/cmake/ninja。 刻意不用 actions/checkout:那需要从 GitHub 下载 action,而这台机器连不上。
This commit is contained in:
1 parent
7170ad4813
commit
b94f1da232
1 file changed
+32
@@ -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)"
|
||||
Reference in new issue
Block a user