Skip to content

Commit 132d81e

Browse files
committed
Try Github Actions because why not.
1 parent 10f3888 commit 132d81e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CMake
2+
3+
on:
4+
push:
5+
branches: [z80]
6+
7+
jobs:
8+
build:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu, macOS, windows]
13+
config: [Release]
14+
assert: [Off, On]
15+
16+
runs-on: ${{matrix.os}}-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
with:
22+
fetch-depth: 1
23+
24+
- name: Create Build Environment
25+
run: |
26+
cmake -E make_directory ${{runner.workspace}}/build
27+
cmake -E make_directory ${{runner.workspace}}/install
28+
29+
- name: Configure CMake
30+
working-directory: ${{runner.workspace}}/build
31+
run: cmake ${{github.workspace}}/llvm -DCMAKE_BUILD_TYPE=${{matrix.config}} -DCMAKE_BUILD_PARALLEL_LEVEL=4 -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install -DLLVM_ENABLE_ASSERTIONS=${{matrix.assert}} -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Z80 -DLLVM_ENABLE_PROJECTS=clang
32+
33+
- name: Build
34+
working-directory: ${{runner.workspace}}/build
35+
run: cmake --build . --config ${{matrix.config}}
36+
37+
- name: Install
38+
working-directory: ${{runner.workspace}}/build
39+
run: cmake --build . --config ${{matrix.config}} --target install
40+
41+
- name: Upload
42+
uses: actions/upload-artifact@v1
43+
with:
44+
name: ${{matrix.os}}Assert${{matrix.assert}}
45+
path: ${{runner.workspace}}/install
46+
47+
- name: Test LLVM
48+
working-directory: ${{runner.workspace}}/build
49+
run: cmake --build . --config ${{matrix.config}} --target check-llvm
50+
continue-on-error: true
51+
52+
- name: Test Clang
53+
working-directory: ${{runner.workspace}}/build
54+
run: cmake --build . --config ${{matrix.config}} --target check-clang
55+
continue-on-error: true

0 commit comments

Comments
 (0)