Skip to content

Commit

Permalink
[37_2] CD on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Oct 7, 2023
1 parent 0e949f2 commit c902678
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/package_on_mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: package on mingw

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
windowsbuild:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/package_on_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: package on mingw

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
windowsbuild:
# mingw-w64 8.1.0 is installed on windows-2019
runs-on: windows-2019
timeout-minutes: 45
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
- name: update repo
run: |
xrepo update-repo
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: config
run: xmake config --yes -vD -m release --plat=mingw
- name: build
run: xmake build -vD research
- name: install
run: xmake install -vD research
- name: Generate Installer
run: xmake install -vD windows_installer
- name: Upload
uses: actions/upload-artifact@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
path: |
build/*.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: build/*.exe

0 comments on commit c902678

Please sign in to comment.