syntax remove line joins #82
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 | ||
|
Check failure on line 1 in .github/workflows/build-linux.yml
|
||
| on: | ||
| push: | ||
| branches: [ "master" ] | ||
| pull_request: | ||
| branches: [ "master" ] | ||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| container: debian:oldstable-slim | ||
| env: | ||
| release_name: release-linux-x86_64 | ||
| COMMIT_SHA8: ${GITHUB_SHA:0:8} | ||
| #VERSION: >- | ||
| # ${{ ( ( startsWith(github.ref, 'refs/tags') && github.ref_name ) || | ||
| # ( startsWith(github.ref_name, 'v1.3.0') && github.ref_name ) || | ||
| # ( }} 'v1.3.0-' $COMMIT_SHA8 ${{ ) ) }} | ||
| steps: | ||
| - name: set version by tag name (as alternative to above) | ||
| run: | | ||
| echo 'VERSION=' ${{ ( ( startsWith(github.ref, 'refs/tags') && github.ref_name ) || | ||
| ( startsWith(github.ref_name, 'v1.3.0') && github.ref_name ) || | ||
| ( }} 'v1.3.0-' $COMMIT_SHA8 ${{ ) ) }} >> $GITHUB_ENV | ||
| # if: ${{ ... }} | ||
| - name: dependencies | ||
| run: | | ||
| apt update -y | ||
| apt install -y -qq \ | ||
| make \ | ||
| build-essential \ | ||
| libgl1-mesa-dev \ | ||
| libsdl2-dev \ | ||
| libopenal-dev \ | ||
| libfreetype6-dev \ | ||
| zip \ | ||
| libcurl4-openssl-dev \ | ||
| curl \ | ||
| rsync \ | ||
| git | ||
| - uses: actions/checkout@v6 | ||
| ## attempts for setting version via tag, but doesn't work for shallow copy: | ||
| # with: | ||
| # fetch-tags: true | ||
| #- name: Git unsafe | ||
| # run: git config --global --add safe.directory /__w/tremulous/tremulous | ||
| - name: make | ||
| run: USE_RESTCLIENT=1 USE_INTERNAL_LUA=1 USE_CURL_DLOPEN=0 make -j | ||
| - name: download paks | ||
| run: ./misc/download-paks.sh | ||
| - name: change perms | ||
| run: chmod -R ugo+rw build | ||
| - name: upload binaries | ||
| # only run if this was a tagged release (only works if separate job) | ||
| # if: ( github.event_name == "create" ) && ( github.event.ref_type == 'tag' ) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.release_name }} | ||
| path: ./build/${{ env.release_name }}.zip | ||