-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.37 KB
/
ubuntu_gcc12_x86-64.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
name: Ubuntu gcc-12 x86-64 build & test
on:
push:
branches: ["main"]
jobs:
build-and-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set SSH Key
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Generate Unix Makefiles
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-12 -Btarget -G "Unix Makefiles"
- name: Build
run: cmake --build target --config Release
- name: Test
run: ctest --test-dir target -j32 -C Release -T test --output-on-failure --verbose
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Core Test Report (Ubuntu gcc-12 x86-64)
path: target/test/test_core_report.xml
reporter: java-junit
- name: Release
run: |
mkdir -p release
cp -R target/test/test_core release -i
cp -R target/src/*.a release -i
cp -R interface/core release/core -i
- name: Upload artifacts
uses: actions/upload-artifact@v3.1.1
with:
name: Ubuntu_gcc_12_x86_64
path: release/**