1
0
mirror of synced 2024-11-23 22:51:02 +01:00

Add gh actions

This commit is contained in:
BroGamer 2022-06-22 12:49:31 +12:00
parent f9bb12d0ad
commit 8c4617e704
2 changed files with 25 additions and 2 deletions

20
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build and upload artifact
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install depends
run: sudo apt-get install -y mingw-w64 clang
- name: Make
run: |
make dist-no-7z
- uses: actions/upload-artifact@v2
with:
name: dist
path: out/

View File

@ -50,11 +50,14 @@ clean:
patches:
make -C patches/8.18
.PHONY: dist
dist: options ${OUT} ${patches}
.PHONY: dist-no-7z
dist-no-7z: options ${OUT} ${patches}
mkdir -p out/plugins
cp ${TARGET}/${OUT}.dll out/
cp ${TARGET}/patches.*.dll out/plugins
cp dist/* out/
.PHONY: dist
dist: dist-no-7z
cd out && 7z a -t7z ../${OUT}.7z .
rm -rf out