From a417e13d13f7b630e26fcfdfbe5d893bcd564ec5 Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 22 Dec 2024 16:03:40 +0100 Subject: [PATCH 1/3] CI: Added CI. --- .github/workflows/windows_latest.yml | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/windows_latest.yml diff --git a/.github/workflows/windows_latest.yml b/.github/workflows/windows_latest.yml new file mode 100644 index 0000000..7c5ae1d --- /dev/null +++ b/.github/workflows/windows_latest.yml @@ -0,0 +1,56 @@ +name: Windows Build + +on: + push: + pull_request: + paths-ignore: + - '.gitignore' + - 'LICENSE' + - 'README.md' + +jobs: + build: + runs-on: windows-latest + if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} + + steps: + - uses: actions/checkout@v2 + name: Checkout + + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: latest + name: Install xmake + + - name: Build debug + run: | + xmake f -m debug -y -v + xmake -v + + - name: Build release + run: | + xmake f -m release -y + xmake + + - name: Prepare artifacts + run: | + mkdir debug-artifact + move bin/windows_x64_debug/FlashlightEngine.exe debug-artifact/ + move bin/windows_x64_debug/FlashlightEngine.pdb debug-artifact/ + move Resources debug-artifact/ + + mkdir release-artifact + move bin/windows_x64_release/FlashlightEngine.exe release-artifact/ + move Resources release-artifact/ + + - uses: actions/upload-artifact@v2 + with: + name: FlashlightEngine-windows-debug-${{ github.run_id }} + path: debug-artifact/ + name: Upload debug artifact + + - uses: actions/upload-artifact@v2 + with: + name: FlashlightEngine-windows-release-${{ github.run_id }} + path: release-artifact/ + name: Upload release artifact \ No newline at end of file From f9d93cd499072f7686b303b778cc6e7ad90b3f8d Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 22 Dec 2024 16:05:47 +0100 Subject: [PATCH 2/3] Fix/CI: Updated actions used. --- .github/workflows/windows_latest.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows_latest.yml b/.github/workflows/windows_latest.yml index 7c5ae1d..58bf789 100644 --- a/.github/workflows/windows_latest.yml +++ b/.github/workflows/windows_latest.yml @@ -14,7 +14,7 @@ jobs: if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: Checkout - uses: xmake-io/github-action-setup-xmake@v1 @@ -43,13 +43,13 @@ jobs: move bin/windows_x64_release/FlashlightEngine.exe release-artifact/ move Resources release-artifact/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: FlashlightEngine-windows-debug-${{ github.run_id }} path: debug-artifact/ name: Upload debug artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: FlashlightEngine-windows-release-${{ github.run_id }} path: release-artifact/ From db5e13804aebbfa2f605204a124309ee8b148f4c Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 22 Dec 2024 16:16:28 +0100 Subject: [PATCH 3/3] Fix/CI: Removed copy of Resources folder. --- .github/workflows/windows_latest.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/windows_latest.yml b/.github/workflows/windows_latest.yml index 58bf789..46c2688 100644 --- a/.github/workflows/windows_latest.yml +++ b/.github/workflows/windows_latest.yml @@ -37,11 +37,9 @@ jobs: mkdir debug-artifact move bin/windows_x64_debug/FlashlightEngine.exe debug-artifact/ move bin/windows_x64_debug/FlashlightEngine.pdb debug-artifact/ - move Resources debug-artifact/ mkdir release-artifact move bin/windows_x64_release/FlashlightEngine.exe release-artifact/ - move Resources release-artifact/ - uses: actions/upload-artifact@v4 with: