-
Notifications
You must be signed in to change notification settings - Fork 10
60 lines (51 loc) · 1.98 KB
/
test-zero.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: The 'Zero' library compiles and passes the tests
on:
push:
branches: 'main'
pull_request:
branches: '*'
jobs:
tests:
name: Run the tests - Clang
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
clang_version: [16, 19]
steps:
- uses: actions/checkout@v3
- name: Caching project dependencies
id: project-cache
uses: Swatinem/rust-cache@v2
- name: Clone Zork++
uses: GuillaumeFalourd/[email protected]
with:
owner: 'ZeroDayCode'
repository: 'Zero'
branch: 'development'
- name: Installing LLVM ${{ matrix.clang_version }}
run: |
# Exit on error
set -e
# Download and execute the LLVM installation script for the specified Clang version
echo "-----> Downloading and executing the LLVM installation script for Clang ${{ matrix.clang_version }}"
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.clang_version }}
echo "-----> Installing libc++"
sudo apt-get install -y libc++-${{ matrix.clang_version }}-dev libc++abi-${{ matrix.clang_version }}-dev libunwind-${{ matrix.clang_version }} libunwind-${{ matrix.clang_version }}-dev libc6 libzstd1
# Update the symbolic link to point to the newly installed Clang version
echo "-----> Updating the symbolic link to point to Clang ${{ matrix.clang_version }}"
sudo rm -f /usr/bin/clang++
sudo ln -s /usr/bin/clang++-${{ matrix.clang_version }} /usr/bin/clang++
- name: Generate a Zork++ release build
run: |
cd zork++
cargo build --release
mv ./target/release/zork ./target/release/zork++
cp ./target/release/zork++ ../../Zero
cd ../..
- name: Running the tests for ${{ matrix.os }} with Zork++
run: |
cd Zero
./zork++ -vv --match-files gh_linux test