-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (54 loc) · 1.31 KB
/
build_qqmsg.yml
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
name: Build QQMsg
on:
push:
branches:
- master
paths:
- "QQMsg/**"
- ".github/workflows/build_qqmsg.yml"
jobs:
build:
strategy:
matrix:
arch:
- amd64
- amd64_x86
- amd64_arm64
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Compile QQMsg
shell: cmd
run: |
cl.exe QQMsg.cpp tree.c md5.c QQmsg_decode.c BlowFish.c /link /out:QQMsg.exe
dir
working-directory: QQMsg
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: QQMsg_${{ matrix.arch }}
path: QQMsg/QQMsg.exe
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
path: artifacts
- name: Display structure of downloaded files
run: ls -R
working-directory: artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: latest
name: latest
draft: false
prerelease: false
fail_on_unmatched_files: true
files: 'artifacts/*/*.exe'