Skip to content

Commit fb464b0

Browse files
committed
refactor: update macOS job configuration and upgrade checkout action to v4
1 parent 04e47e9 commit fb464b0

1 file changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,33 @@ name: build
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
710
BUILD_TYPE: Release
811

912
jobs:
10-
# macos:
11-
# name: macos / clang
12-
# runs-on: macos-10.15
13-
# env:
14-
# CC: clang
15-
# steps:
16-
# - uses: actions/checkout@v2
17-
# - name: Prepare1
18-
# run: brew install gcc glib google-perftools libomp
19-
# - name: Prepare2
20-
# run: bash scripts/setup.sh
21-
# - name: Configure CMake
22-
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
23-
# - name: build
24-
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
25-
# - name: Run
26-
# continue-on-error: true
27-
# run: make test
13+
macos:
14+
name: macos / clang
15+
runs-on: macos-latest
16+
env:
17+
CC: clang
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Prepare
21+
run: bash scripts/install_dependency.sh
22+
- name: Build
23+
run: bash scripts/install_libcachesim.sh
24+
- name: Run
25+
continue-on-error: true
26+
run: make test
2827

2928
ubuntu:
3029
runs-on: ubuntu-latest
3130
steps:
32-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3332
- name: Prepare
3433
run: bash scripts/install_dependency.sh
3534
- name: Configure CMake with LSan
@@ -49,7 +48,7 @@ jobs:
4948
selfhosted:
5049
runs-on: self-hosted
5150
steps:
52-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
5352
- name: Configure CMake
5453
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_GLCACHE=on -DENABLE_LRB=on
5554
- name: Build

0 commit comments

Comments
 (0)