-
Notifications
You must be signed in to change notification settings - Fork 9
81 lines (70 loc) · 2.12 KB
/
linux.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: linux build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: [ self-hosted, linux, x64 ]
container:
image: ghcr.io/julianharbarth/docker-cpp-build:master
volumes:
- ${{ github.event.repository.name }}-${{ matrix.config.preset }}-deps:/deps
- ${{ github.event.repository.name }}-${{ matrix.config.preset }}-buildcache:/buildcache
strategy:
fail-fast: false
matrix:
config:
- preset: clang-release
artifact: linux-amd64
- preset: gcc-release
- preset: gcc-cista-release
- preset: clang-cista-release
- preset: clang-tidy
- preset: clang-sanitizer
- preset: clang-cista-tidy
- preset: clang-cista-sanitizer
env:
BUILDCACHE_DIR: /buildcache
BUILDCACHE_DIRECT_MODE: true
BUILDCACHE_MAX_CACHE_SIZE: 26843545600
BUILDCACHE_LUA_PATH: ${{ github.workspace }}/tools
steps:
# we need to checkout the repository to get the actions
- name: checkout repository
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 19.1
- name: get deps
run: ln -s /deps deps
- name: build soro-s
uses: ./.github/actions/build
with:
preset: ${{ matrix.config.preset }}
- name: test soro-s
uses: ./.github/actions/test
- name: create and upload artifact
if: matrix.config.artifact
uses: ./.github/actions/create-artifact
with:
preset: ${{ matrix.config.preset }}
artifact: ${{ matrix.config.artifact }}
github_token: ${{ secrets.GITHUB_TOKEN }}
docker:
if: github.event.action == 'published'
runs-on: ubuntu-22.04
needs: [ linux ]
steps:
- name: create and upload docker image
uses: ./.github/actions/create-docker
with:
github-token: ${{ secrets.GITHUB_TOKEN }}