-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,16 @@ on: | |
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'hzqst/metamod-fallguys' | ||
|
||
|
||
steps: | ||
- uses: hzqst/[email protected] | ||
|
||
- name: G++ Build Environment | ||
- name: Install build environment | ||
run: sudo apt-get install make build-essential gcc gcc-multilib g++-multilib | ||
|
||
- name: Build metamod-fallguys | ||
- name: Build all | ||
run: | | ||
sudo chmod +777 build-all-linux.sh | ||
./build-all-linux.sh | ||
|
@@ -30,18 +29,26 @@ jobs: | |
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: rm -f build/addons/metamod/dlls/.placeholder | ||
|
||
- name: Zipping the build directory | ||
- name: Archive the build directory | ||
uses: thedoctor0/zip-release@main | ||
with: | ||
type: 'zip' | ||
filename: 'metamod-fallguys-ubuntu-i386.zip' | ||
path: 'build' | ||
exclusions: '.placeholder' | ||
|
||
- name: Archive the source directory | ||
uses: thedoctor0/zip-release@main | ||
with: | ||
type: 'zip' | ||
filename: 'metamod-fallguys-ubuntu-src.zip' | ||
path: 'metamod' | ||
|
||
- 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 | ||
metamod-fallguys-ubuntu-i386.zip | ||
metamod-fallguys-ubuntu-src.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
steps: | ||
- uses: hzqst/[email protected] | ||
|
||
- name: Update submodules | ||
- name: Get submodules | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: git submodule update --init --recursive | ||
shell: cmd | ||
|
@@ -51,7 +51,7 @@ jobs: | |
run: del "build\addons\metamod\dlls\.placeholder" | ||
shell: cmd | ||
|
||
- name: Zipping the build directory | ||
- name: Archive the build directory | ||
uses: thedoctor0/zip-release@main | ||
with: | ||
type: 'zip' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters