-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.35 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
53
name: build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init --recursive
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- name: Generating environment
shell: cmd
run: |
@set PERL=c:/Strawberry/perl/bin/perl
c:/Strawberry/perl/bin/perl makelib.pl --perlpath=c:/Strawberry/perl/bin --busybox=./support/busybox --verbose vc2019
choco install innosetup --version=5.6.1 --force
- name: Compile
shell: cmd
run: |
@set PERL=c:/Strawberry/perl/bin/perl
.\support\gmake-42 release build
- name: Package
shell: cmd
run: |
@set PERL=c:/Strawberry/perl/bin/perl
@rem .\support\gmake-42 release package
"%programfiles(x86)%\Inno Setup 5\ISCC" -DBUILD_INFO=1 -DBUILD_TYPE=release ".\releases\xsh-inno-setup.iss"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: xsh-package
path: ./releases/xsh-build*-setup.exe
- name: Release artifacts
uses: softprops/action-gh-release@v1
with:
files: ./releases/xsh-build*-setup.exe
draft: true