forked from xfangfang/wiliwili
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (82 loc) · 2.59 KB
/
uwp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build uwp wiliwili
on:
push:
branches:
- uwp
- dev
workflow_dispatch:
inputs:
release:
description: 'Push a new release'
required: false
default: 'false'
version:
description: 'Version'
required: false
default: '0.0.0'
jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.info.outputs.version }}
standard_version: ${{ steps.info.outputs.standard_version }}
DIST_UWP: ${{ steps.info.outputs.DIST_UWP }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}
- name: Debug version
run: |
export VERSION=`git rev-parse --short HEAD`
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Release version
if: github.event.inputs.release == 'true' && github.event.inputs.release != 'false' && !cancelled()
run: |
export VERSION="${{ github.event.inputs.version }}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Version
id: info
env:
VERSION: ${{ env.VERSION }}
run: |
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "DIST_UWP=wiliwili-windows-x64-uwp-${VERSION}" >> $GITHUB_OUTPUT
echo $VERSION
echo "${{ github.event.inputs.version }}"
build-win-x64:
needs: [ version ]
runs-on: windows-2022
steps:
- name: Setup Windows 10 SDK
uses: GuillaumeFalourd/[email protected]
with:
sdk-version: 20348
- name: Install NSIS
shell: powershell
run: |
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
xmake --version
- uses: actions/checkout@v3
- name: pre-repo
shell: powershell
run: |
$env:path+=";C:\Users\$($env:username)\xmake"
xmake repo -a local https://github.com/zeromake/xrepo.git
mkdir -p dist
mkdir -p build/xrepo
cd build/xrepo
git clone https://github.com/xfangfang/borealis.git -b wiliwili --depth=1
cd ../../
- name: build
shell: powershell
env:
VERSION: ${{ needs.version.outputs.VERSION }}
run: |
$env:path+=";C:\Users\$($env:username)\xmake"
xmake f -c -y --sw=y --winrt=y --window=sdl --driver=d3d11
xmake build wiliwili
- uses: actions/upload-artifact@v3
with:
name: ${{ needs.version.outputs.DIST_UWP }}
path: build/wiliwili.msix