-
Notifications
You must be signed in to change notification settings - Fork 16
63 lines (55 loc) · 1.86 KB
/
check-linux-build.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
name: Check Linux Build
on:
push:
branches-ignore:
- main
concurrency:
group: check-build-lin-${{ github.ref }}
cancel-in-progress: true
env:
# See https://github.com/git-lfs/git-lfs/issues/5749
GIT_CLONE_PROTECTION_ACTIVE: 'false'
jobs:
build:
name: Build - ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-24.04
name: "Ubuntu 24.04"
steps:
- name: Setup Pragma
uses: Silverlan/pragma/github_actions/setup@main
with:
branch: ${{ github.ref_name }}
clone_url: "https://github.com/${{ github.repository }}.git"
- name: Build Pragma
uses: ./pragma/github_actions/build
id: build-pragma
with:
build-args: "--with-pfm --with-all-pfm-modules --with-vr --with-networking --with-lua-debugger=0 --with-swiftshader"
#- name: Run Tests
# uses: ./pragma/github_actions/run_common_tests@main
# with:
# working-directory: "${{ steps.build-pragma.outputs.install-dir }}"
# import-tests-token: ${{ secrets.PRAGMA_TESTS_IMPORT_TOKEN }}
#- name: Handle Error
# uses: Silverlan/common_actions/action_handle_error@main
# if: failure()
# with:
# timeout-minutes: 15
- name: Upload Debug Artifacts
if: ${{ !cancelled() }}
uses: ./pragma/github_actions/upload_debug_artifacts
with:
build-dir: '${{ steps.build-pragma.outputs.build-dir }}'
deps-dir: '${{ steps.build-pragma.outputs.deps-dir }}'
install-dir: '${{ steps.build-pragma.outputs.install-dir }}'
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: pragma-lin64
path: ${{ steps.build-pragma.outputs.install-dir }}
retention-days: 1