Skip to content

Commit 6ff7bac

Browse files
committed
test setup-ci
1 parent 6a0a2ae commit 6ff7bac

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

Diff for: .github/workflows/release.yml

+1-20
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,11 @@ jobs:
99
linux:
1010
name: Linux
1111
runs-on: ubuntu-20.04
12-
env:
13-
INSTALL_PREFIX: "/opt/smelibs"
14-
SUDO_CMD: "sudo"
15-
TARGET_TRIPLE: "x86_64-unknown-linux-gnu"
16-
PYTHON_EXE: "/usr/bin/python3"
17-
OS: "linux"
18-
CC: "clang"
19-
CXX: "clang++"
2012
defaults:
2113
run:
2214
shell: bash
2315
steps:
24-
- name: Add llvm repo for clang 18 & install
25-
run: |
26-
sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
27-
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main"
28-
sudo apt update -yy
29-
sudo apt install -yy clang-18
30-
- name: Set clang version
31-
run: |
32-
sudo update-alternatives --remove-all clang || echo "nothing to remove"
33-
sudo update-alternatives --remove-all clang++ || echo "nothing to remove"
34-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
35-
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
16+
- uses: spatial-model-editor/setup-ci
3617
- uses: actions/checkout@v4
3718
- name: Build script
3819
run: ./build.sh

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer

Diff for: build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ cmake --version
1919
which python
2020
python --version
2121

22+
exit
23+
2224
NPROCS=4
2325
if [[ "$OS_TARGET" == "osx" ]]; then
2426
NPROCS=3

0 commit comments

Comments
 (0)