-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.2 KB
/
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
47
48
49
50
51
52
name: Autobuild
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: llvm/actions/install-ninja@main
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: true
- name: Build
run: |
mkdir build
cd build
cmake .. -G"Visual Studio 17 2022" -A x64
cmake --build . --config Release
- name: Create artifacts
run: |
mkdir MAXWELL
move build\Release\MAXWELL.dll MAXWELL\MAXWELL.dll
move build\Release\MAXWELL.exe MAXWELL\MAXWELL.exe
move README.md MAXWELL\README.txt
7z a MAXWELL.zip MAXWELL\
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: MAXWELL
path: MAXWELL
- name: Create release
uses: marvinpinto/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "autobuild"
prerelease: false
title: "Autobuild"
files: |
MAXWELL.zip