diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ff1b912 --- /dev/null +++ b/.github/workflows/build.yml @@ -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/ diff --git a/Makefile b/Makefile index 20cb469..74a6dba 100644 --- a/Makefile +++ b/Makefile @@ -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