Skip to content

Commit 6d9a903

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

1 file changed

Lines changed: 23 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,37 @@ 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: Prepare1
21+
run: brew install gcc glib google-perftools libomp
22+
- name: Prepare2
23+
run: bash scripts/setup.sh
24+
- name: Configure CMake
25+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
26+
- name: build
27+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
28+
- name: Run
29+
continue-on-error: true
30+
run: make test
2831

2932
ubuntu:
3033
runs-on: ubuntu-latest
3134
steps:
32-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3336
- name: Prepare
3437
run: bash scripts/install_dependency.sh
3538
- name: Configure CMake with LSan
@@ -49,7 +52,7 @@ jobs:
4952
selfhosted:
5053
runs-on: self-hosted
5154
steps:
52-
- uses: actions/checkout@v2
55+
- uses: actions/checkout@v4
5356
- name: Configure CMake
5457
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_GLCACHE=on -DENABLE_LRB=on
5558
- name: Build

0 commit comments

Comments
 (0)