free unused resources #107
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
name: main | |
on: [push] | |
jobs: | |
Linux: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: install | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc make xxd pkg-config libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev | |
- name: build | |
run: | | |
mkdir -p build/linux | |
md5sum c1k3-assets/audio/* > build/linux/before.md5 | |
make assets | |
md5sum c1k3-assets/audio/* > build/linux/after.md5 | |
make package | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
name: c1k3-linux.tar.gz | |
path: c1k3-linux.tar.gz | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: true | |
files: | | |
c1k3-linux.tar.gz | |
Windows: | |
runs-on: windows-2019 | |
permissions: | |
contents: write | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: install | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ucrt64 | |
install: >- | |
make | |
vim | |
zip | |
mingw-w64-ucrt-x86_64-gcc | |
mingw-w64-ucrt-x86_64-pkg-config | |
mingw-w64-ucrt-x86_64-SDL2 | |
mingw-w64-ucrt-x86_64-SDL2_ttf | |
mingw-w64-ucrt-x86_64-SDL2_mixer | |
mingw-w64-ucrt-x86_64-angleproject | |
- name: build | |
shell: msys2 {0} | |
run: | | |
make package | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
name: c1k3-windows.zip | |
path: c1k3-windows.zip | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: true | |
files: | | |
c1k3-windows.zip |