Skip to content

Commit 95b3755

Browse files
redshift0345rs0345
andauthored
Add a release pipeline (#1)
* add initial build workflow * change vs-version * change versions * add arch preference * remove versions There is only one version on the Actions hosted runner * change compiled config * using a .sln for compilation * add build flags * change build config * change build config * include underdered_map * change build config * add thread import * add matrix strategy for config targets * add matrix strategy for config targets * comment out builds for testing * add zipping and release steps * add quotes around vars * add needed for windows runner * remove extra $ * change runner attribute * change variable calls * change variable calls * add tag to release * change target archive path * change artifacts to archive * change target archive path * change release path * add dir list step * add dir list step * change release target * split release and build into two jobs * remove extentions for upload * use published tag in upload * remove tag * allow updating existing releases * add zip as an extention * remove zip as an extention from upload * change wildcard on release step * uncommend build targets --------- Co-authored-by: redshift0345 <[email protected]>
1 parent 19c4383 commit 95b3755

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy PengEngine
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
jobs:
8+
build:
9+
strategy:
10+
matrix:
11+
configuration: [Master, Release, Development, Debug]
12+
os: [windows-latest]
13+
14+
env:
15+
binary_path: D:\a\PengEngine\PengEngine\\out\x64\${{ matrix.configuration }}\
16+
archive_name: '${{ github.event.repository.name }}-${{ matrix.configuration }}-${{ github.ref_name }}'
17+
name: Build on windows
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Add msbuild to PATH
23+
uses: microsoft/setup-msbuild@v2
24+
with:
25+
msbuild-architecture: x64
26+
27+
- name: Build app for release
28+
run: msbuild /p:configuration=${{ matrix.configuration }} /t:rebuild PengEngine.sln
29+
30+
- name: Zip the project
31+
uses: thedoctor0/[email protected]
32+
with:
33+
type: 'zip'
34+
filename: "${{ env.archive_name }}.zip"
35+
path: "${{ env.binary_path }}"
36+
37+
- name: Cache artifacts
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: "${{ env.archive_name }}"
41+
path: "*.zip"
42+
overwrite: true
43+
retention-days: 1
44+
45+
release:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/download-artifact@v4
50+
- name: Display structure of downloaded files
51+
run: ls -R
52+
53+
- name: Upload Release
54+
uses: ncipollo/release-action@v1
55+
with:
56+
artifacts: "*/*.zip"
57+
token: ${{ secrets.API_TOKEN }}
58+
allowUpdates: true

src/rendering/mesh_decoder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <fstream>
44
#include <filesystem>
5+
#include <unordered_map>
56

67
#include <core/logger.h>
78
#include <profiling/scoped_event.h>

src/utils/timing.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <thread>
2+
13
#include "timing.h"
24

35
namespace timing

0 commit comments

Comments
 (0)