-
Notifications
You must be signed in to change notification settings - Fork 152
52 lines (43 loc) · 1.27 KB
/
ci.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: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: 'itsmattkc/msvc420'
path: msvc420
- name: Setup cmake
uses: jwlawson/[email protected]
with:
# Use minimum supported version
cmake-version: '3.13.x'
- name: Build wrappers
shell: cmd
run: |
call .\msvc420\bin\VCVARS32.BAT x86
cd wrappers
mkdir build
cd build
cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build .
- name: Build installer
shell: cmd
run: |
setup\nsis\makensis.exe setup\dotnet95.nsi
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: setup
path: |
setup/dotnet95.exe
- name: Upload Continuous Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'itsmattkc/dotnet95' }}
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -fLOSs --retry 2 --retry-delay 60 https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh setup/dotnet95.exe