Skip to content

Workflow file for this run

name: build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

`tags` is not a valid event name
on:
push:
tags:
pull_request:
branches:
- main
- develop
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install prerequisites
run: |
sudo apt-get install cmake g++-mingw-w64-i686-posix mingw-w64-i686-dev
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install nasm:i386
- name: CMake Configure
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.CLIENT_AUTH_DEPLOY_KEY }}'
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ -DOFFICIAL_BUILD=ON
- name: Build
run: cmake --build build --parallel
- name: Publish release
if: ${{ env.publish_tag && github.ref_name == 'master' }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: ${{ env.publish_tag }}
artifacts: "build/bin/cod4x_*.dll"
token: ${{ secrets.GITHUB_TOKEN }}