-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.17 KB
/
build-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
name: Build on Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "releases/**" ]
workflow_dispatch:
inputs:
compiler:
required: false
type: string
default: latest
workflow_call:
inputs:
compiler:
required: true
type: string
default: latest
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: 3rd_64
key: ${{ github.ref }}-3rd_64
- name: Install compiler ${{ inputs.compiler || 'latest' }}
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: ${{ inputs.compiler || 'latest' }}
- name: Build on Linux
run: ./build.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: install-librir-ubuntu-latest-${{ inputs.compiler || 'latest' }}
path: build/install