Skip to content

Commit 490cbe0

Browse files
committed
Add macos to CI
1 parent 6ac0a89 commit 490cbe0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,19 @@ jobs:
2222
run: make prepare build test clippy fmt
2323
- name: git diff
2424
run: git diff --exit-code
25+
26+
macos-build:
27+
28+
runs-on: macos-latest
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
submodules: true
34+
- name: Install llvm 18
35+
run: brew install llvm@18
36+
- uses: actions-rust-lang/setup-rust-toolchain@v1
37+
- name: Prepare, build, test, clippy, format
38+
run: make prepare build test clippy fmt
39+
- name: git diff
40+
run: git diff --exit-code

tests/sphincsplus/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cur_dir = $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
22

3-
CC := clang-18
3+
CLANG := clang-18
44
TOP := $(cur_dir)/../..
55

66
PARAMS = sphincs-shake-256f
@@ -25,7 +25,7 @@ all: build/test_sphincsplus
2525

2626
build/test_sphincsplus: test-ckb-sphincs-plus.c $(SOURCES) $(HEADERS)
2727
mkdir -p build
28-
$(CC) $(CFLAGS) -o $@ $(SOURCES) $<
28+
$(CLANG) $(CFLAGS) -o $@ $(SOURCES) $<
2929

3030
clean:
3131
rm -rf build/test_sphincsplus

0 commit comments

Comments
 (0)