Skip to content

Commit 7c65b47

Browse files
authored
Update to use Maiko release artifacts (#563)
1 parent c3a497d commit 7c65b47

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/buildLoadup.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,37 @@ jobs:
2727
- name: Checkout Medley
2828
uses: actions/checkout@v2
2929

30-
- name: Get the latest Maiko Release
31-
uses: actions/checkout@v2
30+
# Get Maiko release information, retrieves the name of the latest
31+
# release. Used to download the correct Maiko release
32+
- name: Get Maiko Release Information
33+
id: latest_version
34+
uses: abatilo/release-info-action@v1.3.0
35+
with:
36+
owner: Interlisp
37+
repo: maiko
38+
39+
# Download Maiko Release Assets
40+
- name: Download Release Assets
41+
uses: robinraju/release-downloader@v1.2
3242
with:
33-
repository: interlisp/maiko
34-
path: maiko
43+
repository: Interlisp/maiko
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
latest: true
46+
fileName: "${{ steps.latest_version.outputs.latest_tag }}-linux.x86_64.tgz"
3547

36-
- name: install compiler
37-
run: sudo apt-get update && sudo apt-get install -y make clang libx11-dev gcc x11vnc xvfb
48+
- name: Untar Maiko Release
49+
run: |
50+
tar -xvzf "${{ steps.latest_version.outputs.latest_tag }}-linux.x86_64.tgz"
3851
3952
- name: install vnc
40-
run: sudo apt-get install -y tightvncserver
41-
42-
- name: Compile Maiko
43-
working-directory: maiko/bin
44-
run: ./makeright x && ./makeright init
53+
run: sudo apt-get update && sudo apt-get install -y tightvncserver
4554

4655
- name: Build Loadout
47-
run: pwd && Xvnc -once -geometry 1280x720 :0 & DISPLAY=:0 PATH="/maiko:$PATH" scripts/loadup-all.sh
56+
run: |
57+
Xvnc -geometry 1280x720 :0 &
58+
export DISPLAY=":0"
59+
PATH="$PWD/maiko:$PATH"
60+
scripts/loadup-all.sh
4861
4962
- name: Build release tar get libs
5063
run: |
@@ -81,13 +94,13 @@ jobs:
8194
8295
- name: Release notes
8396
run: |
84-
sed s/'$tag'/$tag/g < release-notes.md > tmp/release-notes.md &&
85-
ls tmp && env
97+
sed s/'$tag'/$tag/g < release-notes.md > tmp/release-notes.md
8698
8799
- name: push the release
88100
uses: ncipollo/release-action@v1.8.10
89101
with:
90102
artifacts: tmp/${{ env.tag }}-loadups.tgz,tmp/${{ env.tag }}-runtime.tgz
91103
tag: ${{ env.tag }}
104+
draft: true
92105
bodyfile: tmp/release-notes.md
93106
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)