0.1.9 #221
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
permissions: write-all | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: latest | |
actions-cache-folder: '.xmake-cache' | |
actions-cache-key: 'ci' | |
- name: Install LLVM and Clang | |
uses: std-microblock/install-llvm-action@master | |
with: | |
version: "19.1.7" | |
- name: build-releasedbg | |
if: github.event_name != 'release' | |
run: | | |
xmake f --toolchain=clang-cl -m releasedbg -y --verbose | |
xmake b -y --verbose inject | |
xmake b -y --verbose shell | |
- name: build-release | |
if: github.event_name == 'release' | |
run: | | |
xmake f --toolchain=clang-cl -m release -y --verbose | |
xmake b -y --verbose inject | |
xmake b -y --verbose shell | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
path: ./build/windows/x64/ | |
name: windows-build | |
- name: Create Archive | |
if: github.event_name == 'release' | |
run: | | |
Compress-Archive -Path ./build/windows/* -DestinationPath windows-build.zip | |
- name: Upload Release Assets | |
if: github.event_name == 'release' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: windows-build.zip | |
token: ${{ secrets.GITHUB_TOKEN }} |