Skip to content

Commit

Permalink
Merge pull request #2 from Pixfri/github_ci
Browse files Browse the repository at this point in the history
GitHub CI
  • Loading branch information
Pixfri authored Dec 22, 2024
2 parents d460566 + db5e138 commit 825e414
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/windows_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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@v4
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/
mkdir release-artifact
move bin/windows_x64_release/FlashlightEngine.exe release-artifact/
- uses: actions/upload-artifact@v4
with:
name: FlashlightEngine-windows-debug-${{ github.run_id }}
path: debug-artifact/
name: Upload debug artifact

- uses: actions/upload-artifact@v4
with:
name: FlashlightEngine-windows-release-${{ github.run_id }}
path: release-artifact/
name: Upload release artifact

0 comments on commit 825e414

Please sign in to comment.