-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (39 loc) · 1.4 KB
/
test.yml
File metadata and controls
46 lines (39 loc) · 1.4 KB
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
name: tests
on: [push]
jobs:
test:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
build-type: ['release', 'debug']
node-version: ['16']
# Download and install gcc-6 and g++-6 from Ubuntu 18.04
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update
sudo apt install -y wget
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/gcc-6_6.5.0-2ubuntu1~18.04_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/g++-6_6.5.0-2ubuntu1~18.04_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/libstdc++-6-dev_6.5.0-2ubuntu1~18.04_amd64.deb
sudo dpkg -i gcc-6_6.5.0-2ubuntu1~18.04_amd64.deb g++-6_6.5.0-2ubuntu1~18.04_amd64.deb libstdc++-6-dev_6.5.0-2ubuntu1~18.04_amd64.deb
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 60
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and setup
run: |
node -v
which node
clang++ -v
which clang++
make "${{ matrix.build-type }}"
- name: Run tests
run: |
npm test