Skip to content

Commit bf5689b

Browse files
authored
Build loadup (#534)
* Add new GitHub action to create medley release * Update to manual trigger with release name as input * Build loadup (#1) * Add new GitHub action to create medley release * Update to manual trigger with release name as input * Cleanup * Build loadup (#2) * Add new GitHub action to create medley release * Update to manual trigger with release name as input * Cleanup * Cleanup * Build loadup (#3) * Add new GitHub action to create medley release * Update to manual trigger with release name as input * Cleanup * Cleanup * Move sysouts to correct location * Build loadup (#4) * Add new GitHub action to create medley release * Update to manual trigger with release name as input * Cleanup * Cleanup
1 parent 08bdd34 commit bf5689b

File tree

2 files changed

+92
-1
lines changed

2 files changed

+92
-1
lines changed

.github/workflows/build.yml renamed to .github/workflows/buildDocker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# based on https://blog.oddbit.com/post/2020-09-25-building-multi-architecture-im/
22
---
33
# Interlisp workflow to build Docker Image that support multiple architectures
4-
name: 'Build Medley Docker image'
4+
name: Build Medley Docker image
55

66
# Run this workflow on push to master
77
on:

.github/workflows/buildLoadup.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Interlisp workflow to build Medley release
2+
name: Build Medley Release
3+
4+
# Run this workflow on push to master
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: 'Release Tag'
10+
11+
# Jobs that compose this workflow
12+
jobs:
13+
# Build Loadup
14+
loadup:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set release tag if currently undefined
18+
if: ${{ github.event.inputs.tag == null }}
19+
run: |
20+
echo "tag=medley-`date +%y%m%d`" >> $GITHUB_ENV
21+
22+
- name: Set release tag to input value
23+
if: ${{ github.event.inputs.tag != null }}
24+
run: |
25+
echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
26+
27+
- name: Checkout Medley
28+
uses: actions/checkout@v2
29+
30+
- name: Get the latest Maiko Release
31+
uses: actions/checkout@v2
32+
with:
33+
repository: interlisp/maiko
34+
path: maiko
35+
36+
- name: install compiler
37+
run: sudo apt-get update && sudo apt-get install -y make clang libx11-dev gcc x11vnc xvfb
38+
39+
- 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
45+
46+
- name: Build Loadout
47+
run: pwd && Xvnc -once -geometry 1280x720 :0 & DISPLAY=:0 PATH="/maiko:$PATH" scripts/loadup-all.sh
48+
49+
- name: Build release tar get libs
50+
run: |
51+
cp -p tmp/full.sysout tmp/lisp.sysout tmp/*.dribble tmp/whereis.hash loadups/
52+
cp -p tmp/exports.all tmp/RDSYS tmp/RDSYS.LCOM library/
53+
tar cfz tmp/$tag-loadups.tgz \
54+
loadups/lisp.sysout \
55+
loadups/full.sysout \
56+
loadups/whereis.hash \
57+
library/exports.all \
58+
library/RDSYS/ \
59+
library/RDSYS.LCOM
60+
61+
- name: tar part 2
62+
run: |
63+
tar cfz tmp/$tag-runtime.tgz \
64+
--exclude "*~" --exclude "*#*" \
65+
docs/dinfo \
66+
docs/Documentation\ Tools \
67+
greetfiles/SIMPLE-INIT \
68+
run-medley \
69+
scripts \
70+
fonts/displayfonts \
71+
fonts/altofonts \
72+
fonts/postscriptfonts \
73+
library/ \
74+
lispusers/ \
75+
fonts/big \
76+
fonts/other \
77+
sources/ \
78+
internal/library
79+
80+
- name: Release notes
81+
run: |
82+
sed s/'$tag'/$tag/g < release-notes.md > tmp/release-notes.md &&
83+
ls tmp && env
84+
85+
- name: push the release
86+
uses: ncipollo/release-action@v1.8.10
87+
with:
88+
artifacts: tmp/${{ env.tag }}-loadups.tgz,tmp/${{ env.tag }}-runtime.tgz
89+
tag: ${{ env.tag }}
90+
bodyfile: tmp/release-notes.md
91+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)