Skip to content
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0a02a09
Create cmake-single-platform.yml
ivansoft Mar 10, 2025
586ba30
actions bugfix env -> context
ivansoft Mar 10, 2025
7df4d5f
actions bugfix quote cmake args
ivansoft Mar 10, 2025
62f2005
actions bugfix quote cmake args
ivansoft Mar 10, 2025
e63524b
actions bugfix slash -> backslash
ivansoft Mar 10, 2025
3bda8fb
actions bugfix revert backslash -> slash
ivansoft Mar 10, 2025
fa340b6
actions bugfix CMAKE_C_COMPILER set up
ivansoft Mar 10, 2025
ee88525
typo
ivansoft Mar 10, 2025
e5554af
actions bugfix run command wrong indentation
ivansoft Mar 10, 2025
702d3c6
actions cmake -S parameter
ivansoft Mar 10, 2025
951d7c8
actions cmake remove -G generator parameter
ivansoft Mar 10, 2025
9b3d324
debug info
ivansoft Mar 10, 2025
fb39253
include ( CMakePrintSystemInformation )
ivansoft Mar 10, 2025
802439f
include ( CMakePrintHelpers )
ivansoft Mar 10, 2025
7a6e0d4
PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/
ivansoft Mar 10, 2025
a187cc8
revert PREPEND
ivansoft Mar 10, 2025
84a6b44
actions bugfix checkout with submodules
ivansoft Mar 10, 2025
fb3d1dd
revert -G ${{GENERATOR}}
ivansoft Mar 10, 2025
6ca28ce
typo
ivansoft Mar 10, 2025
35a7529
typo
ivansoft Mar 10, 2025
6bd7c99
actions "NMake Makefiles" isn't supported
ivansoft Mar 10, 2025
792bb22
actions +Install step
ivansoft Mar 10, 2025
9c0c0f3
actions Zip step
ivansoft Mar 10, 2025
2e101af
Zip -> Compress-Archive
ivansoft Mar 10, 2025
330bf28
typo
ivansoft Mar 10, 2025
bcb35a8
Upload Release Asset
ivansoft Mar 10, 2025
57e12d7
Cleanup
ivansoft Mar 10, 2025
7b8514e
Cleanup
ivansoft Mar 10, 2025
ce4e44b
actions +on v5.3.5 branch
ivansoft Mar 10, 2025
5a53f98
actions +release job
ivansoft Mar 10, 2025
abd2055
default work-directory
ivansoft Mar 10, 2025
c7b49c8
revert default work-directory
ivansoft Mar 10, 2025
de1e97b
actions +upload-artifact +download-artifact
ivansoft Mar 10, 2025
5aa7629
actions +step Copy Files
ivansoft Mar 10, 2025
1f844be
bash cp -> powershell Copy-Item
ivansoft Mar 10, 2025
66171b3
Release job remove src.lua
ivansoft Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CMake on a single platform

on:
push:
branches: [ "v5.4.1", "v5.3.5" ]
pull_request:
branches: [ "v5.4.1", "v5.3.5" ]

jobs:
build:
runs-on: windows-latest

env:
BUILD_TYPE: Release
c_compiler: cl
cpp_compiler: cl

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Set reusable strings
id: strings
shell: bash
run: |
BUILD_DIR_NAME=cmake-build-${{env.BUILD_TYPE}}-${{runner.arch}}; echo "build-output-dir=${{github.workspace}}/${BUILD_DIR_NAME,,}" >> "$GITHUB_OUTPUT"

- name: Configure CMake
run: >
cmake -B "${{steps.strings.outputs.build-output-dir}}" --install-prefix "${{github.workspace}}/output" -Wdev --warn-uninitialized --log-context -L
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_CXX_COMPILER=${{env.cpp_compiler}}
-DCMAKE_C_COMPILER=${{env.c_compiler}}
-S "${{github.workspace}}"

- name: Build
run: cmake --build ${{steps.strings.outputs.build-output-dir}} --config ${{env.BUILD_TYPE}}

- name: Install
run: cmake --install ${{steps.strings.outputs.build-output-dir}}

# - name: Test
# working-directory: ${{github.workspace}}/build
# # Execute tests defined by the CMake configuration.
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C ${{env.BUILD_TYPE}}

- name: Copy Files
shell: powershell
run: |
Copy-Item -Path "src.lua/README.txt" -Destination "${{github.workspace}}/output"

- uses: actions/upload-artifact@v4
with:
name: build-output
path: ${{github.workspace}}/output

release:
runs-on: windows-latest
needs: build

steps:
- uses: actions/download-artifact@v4
with:
name: build-output
path: ${{github.workspace}}

- name: Zip
shell: powershell
run: Compress-Archive -Path bin,include,lib,README.txt -Destination artifact.zip