Skip to content

update Github action to include only necessary files #2

update Github action to include only necessary files

update Github action to include only necessary files #2

Workflow file for this run

name: Windows build
on:
push:
branches:
- dlubal
workflow_dispatch:
env:
BUILD_TYPE: Release
BUILD_DIR: ${{github.workspace}}/build/bin/Release
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Collect files
run: |
copy ${{env.BUILD_DIR}}/cfg/*.* ${{github.workspace}}/final/cfg
copy ${{env.BUILD_DIR}}/platforms/*.* ${{github.workspace}}/final/platforms
copy ${{env.BUILD_DIR}}/cppcheck.exe ${{github.workspace}}/final/cppcheck.exe
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-win64
path: ${{github.workspace}}/final