Skip to content

Commit 120cf4a

Browse files
committed
feat: simplify workflow
1 parent fab0156 commit 120cf4a

4 files changed

Lines changed: 16 additions & 42 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,49 +14,24 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515

1616
steps:
17-
# ----------------------------
18-
# Checkout
19-
# ----------------------------
2017
- name: Checkout repository
2118
uses: actions/checkout@v4
2219
with:
2320
submodules: recursive
2421

25-
# ----------------------------
26-
# Setup Conan
27-
# ----------------------------
28-
- name: Install Conan
29-
uses: conan-io/setup-conan@v1
30-
31-
# ----------------------------
32-
# Install dependencies
33-
# ----------------------------
34-
- name: conan install packages
35-
run: conan install . --build=missing -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True
36-
37-
- name: sbpt initialization
38-
run: python scripts/sbpt/main.py init src
39-
40-
# ----------------------------
41-
# Build
42-
# ----------------------------
43-
- name: Configure & Build
44-
run: |
45-
if [ "${{ matrix.os }}" == "windows-latest" ]; then
46-
echo "Windows using conan-default preset"
47-
cmake --preset conan-default
48-
else
49-
echo "Linux/macOS using conan-release preset"
50-
cmake --preset conan-release
51-
fi
52-
cmake --build --preset conan-release
53-
shell: bash
54-
55-
# ----------------------------
56-
# Upload artifact
57-
# ----------------------------
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.x"
26+
27+
- name: Build project
28+
run: python scripts/go/main.py -y
29+
30+
- name: Package build
31+
run: python scripts/project_packager.py package
32+
5833
- name: Upload artifact
5934
uses: actions/upload-artifact@v4
6035
with:
61-
name: build-${{ matrix.os }}
62-
path: build/Release/
36+
name: packaged-${{ matrix.os }}
37+
path: "*.zip"

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(mwe_glfw)
33

4-
# Specify the C++ standard
54
set(CMAKE_CXX_STANDARD 20)
65
set(CMAKE_CXX_STANDARD_REQUIRED True)
76

@@ -16,7 +15,7 @@ foreach(_source ${SOURCES})
1615
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${_source})
1716
endforeach()
1817

19-
18+
# automatically generated from conan install
2019
find_package(glm)
2120
find_package(spdlog)
2221
find_package(fmt)

src/utility/math_utils

0 commit comments

Comments
 (0)