Skip to content

Commit

Permalink
Bump CI versions, split engine FGD dump into its own job
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Feb 23, 2024
1 parent 9f3a872 commit 3654e29
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/build-fgds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ permissions:
jobs:
build-fgds:
runs-on: ubuntu-latest
name: Build FGDs
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand All @@ -31,13 +32,31 @@ jobs:
run: python -m pip install -r requirements.txt
- name: FGD build and folder copy
run: bash ./build.sh all
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: build-${{ github.sha }}
path: ./build/*.fgd
if-no-files-found: error
build-engine:
runs-on: ubuntu-latest
name: Build Engine Dump
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install srctools
run: python -m pip install -r requirements.txt
- name: FGD engine dump
run: python src/hammeraddons/unify_fgd.py exp --engine --binary -o build/fgd.lzma
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: build-${{ github.sha }}
path: |
./build/*.fgd
./build/fgd.lzma
name: build-engine-${{ github.sha }}
path: ./build/fgd.lzma
if-no-files-found: error
9 changes: 5 additions & 4 deletions .github/workflows/build-postcompiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,28 @@ jobs:
arch: 'x64'
os: 'ubuntu-latest'
runs-on: ${{ matrix.os }}
name: Build postcompiler-${{ artifact-name }}
steps:
# Build dev on schedule, since it's actually changing.
- name: Checkout Dev
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'schedule'
with:
ref: dev
# Always build the exact tag that's pushed.
- name: Checkout Tag
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'create'
with:
ref: ${{ github.event.ref }}
- name: Checkout Ref
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
ref: ${{ inputs.ref }}

- name: Set up Python ${{ matrix.python-version }}-${{ matrix.arch }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
Expand Down

0 comments on commit 3654e29

Please sign in to comment.