t7x/.github/workflows/build.yml

73 lines
2.0 KiB
YAML
Raw Normal View History

2022-05-21 14:16:20 -04:00
name: Build
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
types: [opened, synchronize, reopened]
jobs:
build:
2022-06-16 03:55:21 -04:00
name: Build
2022-05-21 14:16:20 -04:00
runs-on: windows-2022
strategy:
2022-10-18 02:02:41 -04:00
fail-fast: false
2022-05-21 14:16:20 -04:00
matrix:
configuration:
- Debug
- Release
steps:
# - name: Wait for previous workflows
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
# uses: softprops/turnstyle@v1
# with:
# poll-interval-seconds: 10
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check out files
2022-10-18 02:17:38 -04:00
uses: actions/checkout@v2.5.0
2022-05-21 14:16:20 -04:00
with:
submodules: true
fetch-depth: 0
# NOTE - If LFS ever starts getting used during builds, switch this to true!
lfs: false
- name: Add msbuild to PATH
2022-10-18 02:17:38 -04:00
uses: microsoft/setup-msbuild@v1.1.3
2022-05-21 14:16:20 -04:00
- name: Generate project files
2022-09-17 03:33:15 -04:00
run: tools/premake5 vs2022 --ci-build
2022-05-21 14:16:20 -04:00
- name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master
2022-06-16 03:55:21 -04:00
- name: Build ${{matrix.configuration}}
2022-05-29 10:02:50 -04:00
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=x64 build/boiii.sln
2022-05-21 14:16:20 -04:00
2022-06-16 03:55:21 -04:00
- name: Upload ${{matrix.configuration}} bundle
2022-10-18 02:17:38 -04:00
uses: actions/upload-artifact@v3.1.0
2022-05-21 14:16:20 -04:00
with:
2022-06-16 03:55:21 -04:00
name: ${{matrix.configuration}} Bundle
2022-05-21 14:16:20 -04:00
path: |
build/bin/x64/${{matrix.configuration}}/d3d11.dll
build/bin/x64/${{matrix.configuration}}/d3d11.pdb
2022-06-16 03:55:21 -04:00
- name: Upload ${{matrix.configuration}} binary
if: matrix.configuration == 'Release'
2022-10-18 02:17:38 -04:00
uses: actions/upload-artifact@v3.1.0
2022-06-16 03:55:21 -04:00
with:
name: ${{matrix.configuration}} Binary
path: |
build/bin/x64/${{matrix.configuration}}/d3d11.dll
2022-06-16 04:07:06 -04:00
- name: Upload version
if: matrix.configuration == 'Release'
2022-10-18 02:17:38 -04:00
uses: actions/upload-artifact@v3.1.0
2022-06-16 04:07:06 -04:00
with:
name: Version
path: |
build/version.txt