Skip to content

Experiment with github actions #6

Experiment with github actions

Experiment with github actions #6

Workflow file for this run

name: CI
on:
push:
#branches: [ main ]
pull_request:
#branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
build-type: [Release]
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure (Windows - Visual Studio)
if: runner.os == 'Windows'
shell: pwsh
run: |
#cd main\midnight
#$env:AX_ROOT = "${{ github.workspace }}\main\midnight"
#cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DTME=LOM -DAX_ROOT="$env:AX_ROOT" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
git clone https://github.com/axmolengine/axmol
cd axmol
dir
.\setup.ps1
Write-Host "AX_ROOT = $env:AX_ROOT"
cd ..\main\midnight\build.win32\midnight
mkdir vs_project && cd vs_project
cmake ..\..\.. -G"Visual Studio 17 2022" -A Win32 -DTME:string=LOM
- name: Build (Windows)
if: runner.os == 'Windows'
run: |
cd main\midnight
cmake --build build --config ${{ matrix.build-type }} -- /m
- name: Run tests (Windows)
if: runner.os == 'Windows'
run: |
cd main\midnight
ctest --test-dir build -C ${{ matrix.build-type }} --output-on-failure