-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 922 Bytes
/
linux.yml
File metadata and controls
35 lines (33 loc) · 922 Bytes
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
name: Build and test on Linux
on:
workflow_call:
concurrency:
group: "${{ github.ref }}-linux"
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-latest
# Specify an image from hub.docker.com
# container:
# image: debian:10-slim
# options:
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Setup sccache
uses: hendrikmuhs/ccache-action@main
with:
key: ${{ github.job }}
max-size: 1000M
variant: sccache
- name: Configure CMake and build
run: ${{ github.workspace }}/projectFolder/scripts/create_release.sh withTests
- name: Run tests
run: ${{ github.workspace }}/projectFolder/scripts/run_tests.sh Release
- uses: actions/upload-artifact@v3
if: success()
with:
name: "linux-artifacts"
retention-days: 28
path: |-
build/Release/bin/cpp-cmake-template