Merge pull request #106 from savaughn/app-support #268
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: Build and Bundle Ubuntu | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_linux: | |
# if: false # This workflow is disabled | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake make build-essential libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl1-mesa-dev | |
- name: Build pksav | |
run: | | |
cd deps/pksav/ | |
mkdir build | |
cd build | |
cmake .. -DPKSAV_STATIC=ON -DPKSAV_ENABLE_TESTS=OFF -DPKSAV_ENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Release | |
cmake --build . --config "Release" | |
- name: Build raylib | |
run: | | |
cd deps/raylib/src/ | |
make PLATFORM=PLATFORM_DESKTOP | |
sudo make install | |
- name: Build Project | |
run: | | |
make | |
- name: Bundle Assets | |
run: | | |
# Copy assets to the same directory as the executable | |
mkdir -p build/assets | |
- name: Publish Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pokeromtrader-artifacts-linux | |
path: build/ |