Merge pull request #190 from Amlor/fix_linux_build #1275
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: Akhenaten Build Content | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: run content | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: update-workspace | |
run: | | |
sudo apt -qq update | |
sudo apt install --yes cmake build-essential libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev unzip | |
- name: build-project | |
run: | | |
git clone https://github.com/jeremy-rifkin/cpptrace.git etc/cpptrace | |
mkdir build | |
mkdir artifacts | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. | |
cd .. | |
cmake --build ./build | |
cp ./build/akhenaten ./artifacts/akhenaten.linux | |
zip -r linux_build.zip ./artifacts | |
wget https://nightly.link/dalerank/Akhenaten/workflows/akhenaten_windows/master/windows_build.zip | |
wget https://nightly.link/dalerank/Akhenaten/workflows/akhenaten_mac/master/macos_build.zip | |
unzip windows_build.zip -d artifacts | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux_windows_build | |
path: artifacts | |
- uses: KikimoraGames/itch-publish@v0.0.3 | |
with: | |
butlerApiKey: ${{ secrets.ITCHIO }} | |
gameData: windows_build.zip | |
itchUsername: dalerank | |
itchGameId: akhenaten | |
buildChannel: windows | |
- uses: KikimoraGames/itch-publish@v0.0.3 | |
with: | |
butlerApiKey: ${{ secrets.ITCHIO }} | |
gameData: linux_build.zip | |
itchUsername: dalerank | |
itchGameId: akhenaten | |
buildChannel: linux | |
- uses: KikimoraGames/itch-publish@v0.0.3 | |
with: | |
butlerApiKey: ${{ secrets.ITCHIO }} | |
gameData: macos_build.zip | |
itchUsername: dalerank | |
itchGameId: akhenaten | |
buildChannel: mac |