Skip to content

Commit 21d48f0

Browse files
authored
Update precommit.yml
1 parent 745d8c4 commit 21d48f0

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/precommit.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,38 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
bazel_version:
29-
- '6.3.0'
30-
python_version:
31-
- '3.10'
32-
include:
28+
cfg:
3329
- { name: 'Linux GCC', os: 'ubuntu-22.04', cc: gcc-12, cxx: g++-12, config: }
3430
- { name: 'Linux LLVM+libstdc++', os: 'ubuntu-22.04', cc: clang, cxx: clang++, config: --linkopt=-fuse-ld=lld }
3531
- { name: 'Linux LLVM+libc++', os: 'ubuntu-22.04', cc: clang, cxx: clang++, config: --config=libc++ --linkopt=-fuse-ld=lld }
3632
- { name: 'MacOS 13 x86_64 LLVM+libc++', os: 'macos-13', cc: clang, cxx: clang++, config: --config=libc++ --config=macos }
3733
- { name: 'MacOS 13 ARM64 LLVM+libc++', os: 'macos-13', cc: clang, cxx: clang++, config: --config=libc++ --config=macos_arm64 }
34+
bazel-version:
35+
- '6.3.0'
36+
python-version:
37+
- '3.10'
3838

3939
env:
40-
CC: ${{ matrix.cc }}
41-
CXX: ${{ matrix.cxx }}
42-
USE_BAZEL_VERSION: ${{ matrix.bazel_version }}
40+
CC: ${{ matrix.cfg.cc }}
41+
CXX: ${{ matrix.cfg.cxx }}
42+
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
4343

4444
steps:
4545
- uses: actions/checkout@v3
4646

4747
- name: Set up Python ${{ matrix.python-version }}
4848
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
4949
with:
50-
python-version: ${{ matrix.python_version }}
50+
python-version: ${{ matrix.python-version }}
5151

5252
- name: install infrastructure (Linux)
53-
if: startsWith( matrix.os, 'ubuntu-' )
53+
if: startsWith( matrix.cfg.os, 'ubuntu-' )
5454
run: |
5555
sudo apt-get install python3-dev python3-numpy python3-packaging
5656
sudo ln -s /usr/lib/llvm-10/include/c++/v1 /usr/include/c++/v1
5757
5858
- name: install infrastructure (MacOS)
59-
if: startsWith( matrix.os, 'macos-' )
59+
if: startsWith( matrix.cfg.os, 'macos-' )
6060
run: sudo -H pip3 install numpy packaging
6161

6262
- name: show setup
@@ -69,30 +69,30 @@ jobs:
6969
# run: |
7070
# bazel --bazelrc=.bazelrc build --config=lua5_1 ${{ matrix.config }} //...
7171
# - name: test-lua5.1
72-
# if: (!contains(matrix.config, 'arm64'))
72+
# if: (!contains(matrix.cfg.config, 'arm64'))
7373
# run: |
7474
# bazel --bazelrc=.bazelrc test --config=lua5_1 ${{ matrix.config }} --test_output=errors //...
7575

7676
# - name: build-lua5.2
7777
# run: |
7878
# bazel --bazelrc=.bazelrc build --config=lua5_2 ${{ matrix.config }} //...
7979
# - name: test-lua5.2
80-
# if: (!contains(matrix.config, 'arm64'))
80+
# if: (!contains(matrix.cfg.config, 'arm64'))
8181
# run: |
8282
# bazel --bazelrc=.bazelrc test --config=lua5_2 ${{ matrix.config }} --test_output=errors //...
8383

8484
- name: build-luajit
8585
run: |
8686
bazel --bazelrc=.bazelrc build --config=luajit ${{ matrix.config }} //...
8787
- name: test-luajit
88-
if: (!contains(matrix.config, 'arm64'))
88+
if: (!contains(matrix.cfg.config, 'arm64'))
8989
run: |
9090
bazel --bazelrc=.bazelrc test --config=luajit ${{ matrix.config }} --test_output=errors //...
9191
9292
- name: build-luajit-internal_unwind
9393
run: |
9494
bazel --bazelrc=.bazelrc build --config=luajit ${{ matrix.config }} --copt=-fno-asynchronous-unwind-tables --luajit_external_unwinder=False //...
9595
- name: test-luajit-internal_unwind
96-
if: (!contains(matrix.config, 'arm64'))
96+
if: (!contains(matrix.cfg.config, 'arm64'))
9797
run: |
9898
bazel --bazelrc=.bazelrc test --config=luajit ${{ matrix.config }} --copt=-fno-asynchronous-unwind-tables --luajit_external_unwinder=False --test_output=errors //...

0 commit comments

Comments
 (0)