Skip to content

Feat(CI): Do builds as a matrix so all types are available #32

Feat(CI): Do builds as a matrix so all types are available

Feat(CI): Do builds as a matrix so all types are available #32

Workflow file for this run

name: IO2-Main

Check failure on line 1 in .github/workflows/io2.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/io2.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: strategy
on:
push:
branches:
- 'master'
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
strategy:
matrix:
build_type: [Release, RelWithDebInfo, MinSizeRel, Debug]
Windows:
runs-on: windows-2022
env:
build_dir: D:/a/Lua-io2/Lua-io2/${{ matrix.build_type}}/
steps:
- uses: actions/checkout@v4
- name: Cache Boost
id: cache-LuaBoost
uses: actions/cache@v3
with:
path: |
C:/local/boost_1_80_0/
D:/a/Lua-io2/Lua-io2/LuaJIT/
D:/a/Lua-io2/Lua-io2/sol2/
key: ${{ runner.os }}-LuaBoost
- name: Get Deps (Boost, LuaJIT)
shell: bash
if: steps.cache-LuaBoost.outputs.cache-hit != 'true'
run: CI/get_win_deps.sh
- name: Configure
shell: bash
run: LUA_DIR=LuaJIT/ cmake .
- name: Build
run: |
cmake --build . --config ${{ matrix.build_type }}
mv $BUILD_DIR/io2.dll $BUILD_DIR/io2-${{ matrix.build_type }}
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
tag_name: Stable-${{ github.sha }}
files: $BUILD_DIR/io2-${{ matrix.build_type }}.dll
body: |
CI Build for Dreamweave IO2 fork