diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a9d95b4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,58 @@ +name: Deploy PengEngine + +on: + push: + tags: + - '**' +jobs: + build: + strategy: + matrix: + configuration: [Master, Release, Development, Debug] + os: [windows-latest] + + env: + binary_path: D:\a\PengEngine\PengEngine\\out\x64\${{ matrix.configuration }}\ + archive_name: '${{ github.event.repository.name }}-${{ matrix.configuration }}-${{ github.ref_name }}' + name: Build on windows + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + with: + msbuild-architecture: x64 + + - name: Build app for release + run: msbuild /p:configuration=${{ matrix.configuration }} /t:rebuild PengEngine.sln + + - name: Zip the project + uses: thedoctor0/zip-release@0.7.5 + with: + type: 'zip' + filename: "${{ env.archive_name }}.zip" + path: "${{ env.binary_path }}" + + - name: Cache artifacts + uses: actions/upload-artifact@v4 + with: + name: "${{ env.archive_name }}" + path: "*.zip" + overwrite: true + retention-days: 1 + + release: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + - name: Display structure of downloaded files + run: ls -R + + - name: Upload Release + uses: ncipollo/release-action@v1 + with: + artifacts: "*/*.zip" + token: ${{ secrets.API_TOKEN }} + allowUpdates: true \ No newline at end of file diff --git a/src/rendering/mesh_decoder.cpp b/src/rendering/mesh_decoder.cpp index d31964b..3904d11 100644 --- a/src/rendering/mesh_decoder.cpp +++ b/src/rendering/mesh_decoder.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include diff --git a/src/utils/timing.cpp b/src/utils/timing.cpp index 6731754..f0de7b4 100644 --- a/src/utils/timing.cpp +++ b/src/utils/timing.cpp @@ -1,3 +1,5 @@ +#include + #include "timing.h" namespace timing