Add gh actions
This commit is contained in:
parent
f9bb12d0ad
commit
8c4617e704
20
.github/workflows/build.yml
vendored
Normal file
20
.github/workflows/build.yml
vendored
Normal 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/
|
7
Makefile
7
Makefile
@ -50,11 +50,14 @@ clean:
|
|||||||
patches:
|
patches:
|
||||||
make -C patches/8.18
|
make -C patches/8.18
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist-no-7z
|
||||||
dist: options ${OUT} ${patches}
|
dist-no-7z: options ${OUT} ${patches}
|
||||||
mkdir -p out/plugins
|
mkdir -p out/plugins
|
||||||
cp ${TARGET}/${OUT}.dll out/
|
cp ${TARGET}/${OUT}.dll out/
|
||||||
cp ${TARGET}/patches.*.dll out/plugins
|
cp ${TARGET}/patches.*.dll out/plugins
|
||||||
cp dist/* out/
|
cp dist/* out/
|
||||||
|
|
||||||
|
.PHONY: dist
|
||||||
|
dist: dist-no-7z
|
||||||
cd out && 7z a -t7z ../${OUT}.7z .
|
cd out && 7z a -t7z ../${OUT}.7z .
|
||||||
rm -rf out
|
rm -rf out
|
||||||
|
Loading…
Reference in New Issue
Block a user