-
Notifications
You must be signed in to change notification settings - Fork 5
94 lines (80 loc) · 2.41 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Build GCCLIB
on: [push]
jobs:
#**************************************************#
build-cms:
name: Build for CMS
runs-on: [ubuntu-latest]
container: adriansutherland/vm370:builder
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Move Source
run: |
mkdir /opt/hercules/vm370/io
mv * /opt/hercules/vm370/io
shell: bash
- name: Build
working-directory: /opt/hercules/vm370
run: |
chmod -R ugo+rw *
hercules -f hercules.conf -d >/dev/null 2>/dev/null &
cd io
chmod +x cmsbuild.sh
echo "Running CMSBUILD"
./cmsbuild.sh
shell: bash
- name: Get Executable
run: |
mkdir -p exe
cp /opt/hercules/vm370/io/brexxbin.aws exe
cp /opt/hercules/vm370/io/brexxsrc.aws exe
cp /opt/hercules/vm370/io/brexxbin.vmarc exe
cp /opt/hercules/vm370/io/brexxsrc.vmarc exe
cp /opt/hercules/vm370/io/LICENSE exe
cp /opt/hercules/vm370/io/README.md exe
cp /opt/hercules/vm370/io/changelog.txt exe
cp /opt/hercules/vm370/gccbrx.cckd exe
chmod -R ugo+r exe
shell: bash
- name: Upload Executable
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v1
with:
name: BREXX
path: ./exe
#**************************************************#
release:
if: startsWith(github.ref, 'refs/tags/')
name: Release
needs: [build-cms]
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Get CMS binary
uses: actions/download-artifact@v1
with:
name: BREXX
- name: ZIP CMS binary
run:
zip -r BREXX.zip BREXX
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: true
- name: Upload Release Asset - CMS
id: upload-release-asset-CMS
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BREXX.zip
asset_name: BREXX.zip
asset_content_type: application/zip