-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (39 loc) · 1.17 KB
/
ubuntu.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
name: ubuntu
on:
push:
tags:
- "v*"
pull_request:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-20.04
if: github.repository == 'hzqst/metamod-fallguys'
steps:
- uses: hzqst/[email protected]
- name: Install build environment
run: sudo apt-get install make build-essential gcc gcc-multilib g++-multilib
- name: Build all
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cd scripts
sudo chmod +777 *.sh
./build-all-linux.sh
- name: Remove placeholder
working-directory: ${{env.GITHUB_WORKSPACE}}
run: rm -f build/addons/metamod/dlls/.placeholder
- name: Archive the build directory
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'metamod-fallguys-ubuntu-i386.zip'
path: 'build'
exclusions: '.placeholder'
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: metamod-fallguys-${{ github.ref }}
files: |
metamod-fallguys-ubuntu-i386.zip