Skip to content

Commit

Permalink
Change: [CI] switch to reusing workflows (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Jul 1, 2023
1 parent 110489f commit a3cd07e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 207 deletions.
156 changes: 0 additions & 156 deletions .github/workflows/publish.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
release:
types:
- published
schedule:
- cron: '0 21 * * *'
workflow_dispatch:

jobs:
release:
name: Release
uses: OpenTTD/actions/.github/workflows/rw-entry-release-baseset.yml@v4
secrets: inherit
with:
apt-packages: gimp grfcodec
name: opengfx
pip-packages: nml
problem-matcher: .github/workflows/nml-problem-matcher.json
59 changes: 8 additions & 51 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,12 @@ on:
branches:
- master

concurrency:
group: testing-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
build:
name: Build OpenGFX
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
shell: bash
run: |
sudo apt update
sudo apt install -y gimp grfcodec --no-install-recommends
python -m pip install --upgrade pip
python -m pip install nml
- name: Install NML problem matcher
shell: bash
run: |
echo "::add-matcher::.github/workflows/nml-problem-matcher.json"
- name: Build
shell: bash
run: |
make maintainer-clean
make bundle_tar bundle_src
check_annotations:
name: Check Annotations
needs:
- build

if: always() && github.event_name == 'pull_request'

runs-on: ubuntu-latest

steps:
- name: Check annotations
uses: OpenTTD/actions/annotation-check@v4
testing:
name: Testing
uses: OpenTTD/actions/.github/workflows/rw-entry-testing-baseset.yml@v4
with:
apt-packages: gimp grfcodec
name: opengfx
pip-packages: nml
problem-matcher: .github/workflows/nml-problem-matcher.json

0 comments on commit a3cd07e

Please sign in to comment.