Skip to content

Make CI not wait for unelated parallel build #296

Make CI not wait for unelated parallel build

Make CI not wait for unelated parallel build #296

Workflow file for this run

name: Build Pythia
on: [push]
env:
PYTHON_VERSION: 3.10.9
jobs:
Build-binaries:
strategy:
matrix:
os: [windows-2019, ubuntu-20.04]
uses: ./.github/workflows/build-binaries.yml

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

View workflow run for this annotation

GitHub Actions / Build Pythia

Invalid workflow file

The workflow is not valid. In .github/workflows/build.yml (Line: 10, Col: 11): Error from called workflow overfl0/Pythia/.github/workflows/build-binaries.yml@6194efc96a01890b4858fcded323f62ffce22dcb (Line: 6, Col: 9): Required property is missing: type
with:
os: ${{ matrix.os }}
Build-PBO:
runs-on: windows-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Check out repository code
uses: actions/checkout@v3
- name: Cache tools
uses: actions/cache@v3
with:
path: tools/cache
key: tools_cache
# Build PBOs and pack
- name: Install Mikero's tools
uses: arma-actions/mikero-tools@bec8b18fc507ee3180cadeaf35249d3f2702b1ff
- run: python tools/build.py build_pbos
- uses: actions/upload-artifact@v3
with:
name: _Internal_Pythia_PBOs
path: |
@Pythia/addons
@Pythia/keys
if-no-files-found: error
retention-days: 1
Consolidate:
needs:
- Build-Binaries
- Build-PBO
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Check out repository code
uses: actions/checkout@v3
- name: Download the binaries
uses: actions/download-artifact@v3
with:
name: _Internal_Pythia_Binaries
path: "@Pythia"
- name: Download the PBOs
uses: actions/download-artifact@v3
with:
name: _Internal_Pythia_PBOs
path: "@Pythia"
- name: Download the interpreters
uses: actions/download-artifact@v3
with:
name: _Internal_Python_Interpreters
- name: Set testers permissions
run: chmod a+x @Pythia/PythiaTester*
- name: Copy templates
run: python tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
- name: Unpack interpreters
run: for i in python-*.tar; do tar xf "$i" --directory "@Pythia"; done
- run: pip install -r requirements.txt
- run: python tools/build.py safety_checks ${{ env.PYTHON_VERSION }}
- name: Remove linux 32bit Pythia
run: rm -rf @Pythia/python-*-embed-linux32 @Pythia/Pythia.so @Pythia/PythiaSetPythonPath.so @Pythia/PythiaTester @Pythia/install_requirements32.sh
- run: tar -jcf "@Pythia.tbz" "@Pythia"
- uses: actions/upload-artifact@v3
# if: ${{ github.ref == 'refs/heads/master' }}
with:
name: Pythia
path: "@Pythia.tbz"
if-no-files-found: error
retention-days: 8
# Deploy-dev:
# needs:
# - Consolidate
# runs-on: ubuntu-latest
# environment: Dev-deploy
# steps:
# - name: Download the release
# uses: actions/download-artifact@v3
# with:
# name: Pythia
#
# - name: Unpack the release
# run: tar xf @Pythia.tbz
#
# - name: Upload to Workshop as Pythia-dev
# uses: arma-actions/workshop-upload@v1
# if: github.event_name == 'push' && github.actor != 'depbot'
# with:
# appId: '107410' # default
# itemId: '2705521455' # ID of item to update
# contentPath: '@Pythia'
# changelog: 'Automatic push by CI'
# env:
# STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
# STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}