fix last remaining FOV issues #771
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: Build - Linux | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| - "release/*" | |
| jobs: | |
| build_linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.REPO_TOKEN }} | |
| submodules: recursive | |
| - name: Setup ccache | |
| id: setup-ccache | |
| uses: actions/cache@v6 | |
| with: | |
| path: ${{ github.workspace }}/.ccache | |
| key: ${{ runner.os }}-ccache-${{ github.ref_name }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-ccache-${{ github.ref_name }}- | |
| ${{ runner.os }}-ccache-${{ github.base_ref }}- | |
| ${{ runner.os }}-ccache-tc2-mod- | |
| - name: Build dist | |
| id: build-dist | |
| env: | |
| CCACHE_DIR: ${{ github.workspace }}/.ccache | |
| CCACHE_COMPRESSLEVEL: 6 | |
| run: | | |
| mkdir -p $CCACHE_DIR | |
| ./src/buildallprojects | |
| ./game_clean/copy.sh | |
| - name: Archive production artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: game | |
| path: | | |
| game_dist | |
| - name: Archive debug info | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: game-debug-info | |
| path: | | |
| game_dist_debug | |
| - name: Package Release | |
| id: package-rel | |
| if: ${{ (github.repository_owner == 'mastercomfig' || github.repository_owner == 'mastercoms') && github.event_name == 'push' && (github.ref == 'refs/heads/tc2-mod' || startsWith(github.ref, 'refs/heads/release/')) }} | |
| run: | | |
| rm -rf game_dist_debug | |
| (cd game_dist && 7z a -r ../game-linux.zip '*') | |
| shell: bash | |
| - name: Setup Butler | |
| id: setup-butler | |
| if: ${{ (github.repository_owner == 'mastercomfig' || github.repository_owner == 'mastercoms') && github.event_name == 'push' && (github.ref == 'refs/heads/tc2-mod' || startsWith(github.ref, 'refs/heads/release/')) }} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y 7zip curl | |
| mkdir -p ~/.local/bin | |
| curl -sSL --fail --retry 2 --max-time 10 "https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default" -o cibin/butler/linux/butler.zip || true | |
| 7z x -y cibin/butler/linux/butler.zip -o$HOME/.local/bin/ | |
| chmod +x ~/.local/bin/butler | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| export PATH="$HOME/.local/bin:$PATH" | |
| butler -V | |
| - name: Push to Itch (prerelease) | |
| id: itch-prerelease | |
| if: ${{ (github.repository_owner == 'mastercomfig' || github.repository_owner == 'mastercoms') && github.event_name == 'push' && (github.ref == 'refs/heads/tc2-mod' || startsWith(github.ref, 'refs/heads/release/')) }} | |
| run: | | |
| BRANCH_STR=prerelease ./game_clean/push.sh game_dist | |
| shell: bash | |
| env: | |
| BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | |
| - name: Push Release | |
| id: create-rel | |
| if: ${{ (github.repository_owner == 'mastercomfig' || github.repository_owner == 'mastercoms') && github.event_name == 'push' && (github.ref == 'refs/heads/tc2-mod' || startsWith(github.ref, 'refs/heads/release/')) }} | |
| run: | | |
| ./game_clean/tag.sh | |
| rm game-linux.zip | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{secrets.REPO_TOKEN}} | |
| - name: Cleanup | |
| id: cleanup | |
| run: | | |
| rm -rf game_dist | |
| git clean -xfd -- game src |