Improve fireteam teamjump mode & target_ftrelay #1556
Workflow file for this run
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: etjump-CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
merge_group: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
linux-x86_64: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- name: Archive linux-x86_64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-artifacts-${{ github.job }} | |
path: | | |
${{github.workspace}}/build/etjump | |
linux-x86: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc-multilib g++-multilib | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-cross-x86-linux.cmake | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- name: Archive linux-x86 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-artifacts-${{ github.job }} | |
path: | | |
${{github.workspace}}/build/etjump | |
windows-x86_64: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G "Visual Studio 16 2019" -A x64 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- name: Archive windows-x86_64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-artifacts-${{ github.job }} | |
path: | | |
${{github.workspace}}/build/etjump | |
windows-x86: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G "Visual Studio 16 2019" -A Win32 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- name: Archive windows-x86 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-artifacts-${{ github.job }} | |
path: | | |
${{github.workspace}}/build/etjump | |
macOS: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- name: Archive macos-11 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-artifacts-${{ github.job }} | |
path: | | |
${{github.workspace}}/build/etjump | |
package: | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
runs-on: ubuntu-20.04 | |
needs: [linux-x86, linux-x86_64, windows-x86, windows-x86_64, macOS] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: etjump-artifacts-* | |
merge-multiple: true | |
path: ${{github.workspace}}/build/etjump | |
- name: Pack release zip | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF | |
make mod_release | |
- name: Upload release | |
uses: actions/upload-artifact@v4 | |
with: | |
name: etjump-snapshot-release | |
path: ${{github.workspace}}/build/*.zip | |
- name: Create latest build | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: Latest Build | |
files: | | |
${{github.workspace}}/build/*.zip |