fixed compilation for clang #2474
This file contains hidden or 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 Linux | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| name: run on linux | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: update-workspace | |
| run: | | |
| sudo apt -qq update | |
| sudo apt install --yes cmake build-essential libgl1-mesa-dev | |
| - name: build-project | |
| run: | | |
| mkdir build | |
| mkdir linux_build | |
| mkdir linux_build/data | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release .. | |
| cd .. | |
| cmake --build ./build | |
| cp ./build/akhenaten ./linux_build/akhenaten.linux | |
| cp ./data/pharaoh_fonts_pack.sgx ./linux_build/data/pharaoh_fonts_pack.sgx | |
| cp ./data/pharaoh_custom_pack.sgx ./linux_build/data/pharaoh_custom_pack.sgx | |
| cp ./data/pharaoh_houses_pack.sgx ./linux_build/data/pharaoh_houses_pack.sgx | |
| cp ./data/neucha.ttf ./linux_build/data/neucha.ttf | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux_build | |
| path: linux_build |