-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (65 loc) · 1.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: bulid
on:
push:
pull_request:
workflow_dispatch:
schedule:
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
# This example triggers the workflow every day at 19:00 UTC(JST+0900 04:00, Note: 19+9-24=4):
- cron: '0 19 * * *'
env:
NOPAUSE: 1
REMOVE_TMP: 1
RETENTION_DAYS: 3
jobs:
build-teraterm:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
key: ttssh2-cache
path: |
ttssh2/libs
ttssh2/buildtools
- name: checkout
shell: cmd
run: svn checkout http://svn.osdn.net/svnroot/ttssh2/trunk "ttssh2" --quiet
- name: show svn rev
shell: cmd
working-directory: ttssh2
run: svn info --show-item revision
- name: install
shell: cmd
run: |
cd ttssh2\buildtools
cmake -P install_cygwin.cmake
cmake -P install_innosetup.cmake
- name: build
shell: cmd
run: |
cd ttssh2\installer
release.bat 2
- name: artifacts_installer
uses: actions/upload-artifact@v2
with:
name: artifacts_installer
path: ./ttssh2/installer/Output/*.exe
retention-days: ${{env.RETENTION_DAYS}}
if-no-files-found: error
- name: artifacts_zip
uses: actions/upload-artifact@v2
with:
name: artifacts_zip
path: ./ttssh2/installer/Output/*-snapshot.zip
retention-days: ${{env.RETENTION_DAYS}}
if-no-files-found: error
- name: artifacts_pdb_zip
uses: actions/upload-artifact@v2
with:
name: artifacts_pdb_zip
path: ./ttssh2/installer/Output/*-snapshot_pdb.zip
retention-days: ${{env.RETENTION_DAYS}}
if-no-files-found: error