forked from kcl-lang/kcl
-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (50 loc) · 1.62 KB
/
build-test-macos-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and Test on MacOS ARCH64
on: ["push", "pull_request"]
jobs:
build-and-test:
# Ref: https://github.com/actions/runner-images/tree/main/images/macos
# Note: The arch of macos-14 is arm64
strategy:
matrix:
os: [macos-13-xlarge, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: "true"
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
- run: clang --version
- run: cargo --version
- run: rustc --print sysroot
- name: Delete rust cargo
run: rm -rf /root/.cargo/bin
shell: bash
- name: Install LLVM 12
run: brew install llvm@12
shell: bash
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76
override: true
components: clippy, rustfmt
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/Darwin/kclvm/bin:/opt/homebrew/opt/llvm@12/bin/ && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/Darwin/kclvm/bin:/opt/homebrew/opt/llvm@12/bin/ && make test-grammar-evaluator
shell: bash
- uses: actions/upload-artifact@v3
with:
name: kcl-darwin-arm64
path: _build/dist/Darwin/kclvm