Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Changes.txt: fixed one bug fix note (confused with an older fix) #3668

Changes.txt: fixed one bug fix note (confused with an older fix)

Changes.txt: fixed one bug fix note (confused with an older fix) #3668

Workflow file for this run

name: GitHub Actions Build
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows-mingw64, os: windows-latest, artifact: 'ags-mingw64', shell: 'msys2 {0}', runbin: "./ags", bindir: "", msystem: mingw64, msys-env: mingw-w64-x86_64 }
- { name: Windows, os: windows-latest, artifact: 'ags-windows', shell: cmd, runbin: ".\\ags.exe", bindir: "Release" }
- { name: Ubuntu, os: ubuntu-latest, artifact: 'ags-linux', shell: sh, runbin: "./ags", bindir: "" }
- { name: macOS, os: macos-latest, artifact: 'ags-macos', shell: sh, runbin: "./ags", bindir: "" }
steps:
- name: Set up MSYS2
if: matrix.platform.shell == 'msys2 {0}'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.platform.msystem }}
install: >-
${{ matrix.platform.msys-env }}-cc
${{ matrix.platform.msys-env }}-cmake
${{ matrix.platform.msys-env }}-ninja
${{ matrix.platform.msys-env }}-perl
${{ matrix.platform.msys-env }}-python-pip
${{ matrix.platform.msys-env }}-pkg-config
${{ matrix.platform.msys-env }}-clang-tools-extra
unzip
- name: Set up Tappy
run: pip install tap.py
- uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake --version
cmake -S "${{github.workspace}}" -B "${{github.workspace}}/build" -DAGS_BUILD_TOOLS=1 -DAGS_TESTS=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}} --parallel 2
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.artifact }}
path: |
${{github.workspace}}/build/${{env.BUILD_TYPE}}/ags.exe
${{github.workspace}}/build/ags
${{github.workspace}}/build/ags.exe
- name: Download auto-test
working-directory: ${{github.workspace}}/build/${{matrix.platform.bindir}}
run: |
curl -sLo auto-test.zip https://github.com/adventuregamestudio/ags-test-games/releases/latest/download/ags3-auto-test.zip
- name: Unzip auto-test
if: matrix.platform.shell == 'cmd'
working-directory: ${{github.workspace}}/build/${{matrix.platform.bindir}}
run: |
tar -f auto-test.zip -xvzC .
del auto-test.
- name: Unzip auto-test
if: matrix.platform.shell != 'cmd'
working-directory: ${{github.workspace}}/build/${{matrix.platform.bindir}}
run: |
unzip auto-test.zip
rm auto-test.zip
- name: Run auto-test
working-directory: ${{github.workspace}}/build/${{matrix.platform.bindir}}
run: |
${{matrix.platform.runbin}} --no-message-box --log-stdout=script:info,main:info --user-data-dir . ags3-auto-test.ags
- name: Check auto-test # we are using tap.py so that the pipeline fails if a test fails
working-directory: ${{github.workspace}}/build/${{matrix.platform.bindir}}
run: |
tappy agstest.tap
Morty Proxy This is a proxified and sanitized view of the page, visit original site.