Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Build

Build #37

Workflow file for this run

name: Build
on:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
configuration:
- Debug
- Release
steps:
- name: Check out files
uses: actions/[email protected]
with:
submodules: true
fetch-depth: 0
lfs: false
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate project files
run: tools/premake5 vs2022 --no-check
- name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master
- name: Build ${{matrix.configuration}}
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=x64 build/boiii.sln
- name: Upload ${{matrix.configuration}} binary
if: matrix.configuration == 'Release'
uses: actions/[email protected]
with:
name: ${{matrix.configuration}} Binary
path: |
build/bin/x64/${{matrix.configuration}}/boiii.exe
create_release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- name: Download boiii.exe
uses: actions/download-artifact@v3
with:
name: Release Binary
path: artifacts
- name: Create a Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.TOKEN }}
automatic_release_tag: ezz-${{ github.run_number }}
title: Release ezz-${{ github.run_number }}
prerelease: false
files: |
artifacts/boiii.exe