forked from GloriousEggroll/proton-ge-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.52 KB
/
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
name: Build
on:
workflow_call:
inputs:
name:
required: true
type: string
jobs:
proton:
name: ${{ inputs.name }}
runs-on: ubuntu-latest
steps:
- name: Prepare host
run: sudo apt update && sudo apt-get install -y ccache fontforge-nox
- name: Download cache
uses: actions/cache@v3
with:
path: ~/.ccache
key: ccache-proton-${{ github.run_id }}
restore-keys: |
ccache-proton
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- name: Patch
run: |
# strip binaries at compile time to save space in the runner
patch -Np1 -i ./.github/patches/0001-strip-binaries-early.patch
# apply proton-ge-custom patches
./patches/protonprep-valve-staging.sh || true
mkdir ./build
- name: Configure
working-directory: ./build
run: ../configure.sh --build-name=${{ inputs.name }} --enable-ccache --container-engine=docker
- name: Make ${{ inputs.name }}
working-directory: ./build
run: make -j3 redist
- name: Upload artifact ${{ inputs.name }}.tar.gz
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}.tar.gz
path: ./build/${{ inputs.name }}.tar.gz
- name: Upload artifact ${{ inputs.name }}.sha512sum
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}.sha512sum
path: ./build/${{ inputs.name }}.sha512sum