-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 967 Bytes
/
build.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
name: build
on:
push:
branches: [ "main" ]
tags: 'v*'
paths-ignore:
- 'doc/**'
- '.github/**'
- '*.md'
workflow_dispatch:
jobs:
linuxXwindows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential g++-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix
- name: windows mingw build
run: |
./build.sh
mkdir release
cp build/*.exe release
cp build/*.dll release
zip -r release.zip release
- name: build
uses: actions/upload-artifact@v4
with:
name: build
path: release
- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
name: "release-${{ github.ref_name }}"
tag_name: ${{ github.ref }}
files: |
release.zip