Skip to content

Commit de45cf4

Browse files
author
Detlef Groth
committed
adding nightly build
1 parent fa600bb commit de45cf4

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Nightly
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '53 7 * * *'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
linux:
13+
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: make bfs binary
19+
run: make bfs-bin
20+
21+
- name: make me binary
22+
run: |
23+
sudo apt install build-essential mingw-w64 gcc-mingw-w64-i686
24+
sudo apt install libz-mingw-w64 libz-mingw-w64-dev
25+
make me-bin
26+
make mingw-w32-compile
27+
28+
- name: make me-standalone binary
29+
run: make me-bfs-bin
30+
31+
- name: Make me-standalone binary
32+
run: |
33+
mkdir binaries-Linux-x86_64
34+
mkdir binaries-Windows-32
35+
cp bfs/bfs binaries-Linux-x86_64/
36+
cp src/.linux32gcc-release-mecw/mecw binaries-Linux-x86_64/mecw-ubuntu-20
37+
cp me-linux.bin binaries-Linux-x86_64/me-ubuntu-20.bin
38+
cp license.txt binaries-Linux-x86_64/
39+
cp README-standalone.md binaries-Linux-x86_64/
40+
cp me-windows.exe binaries-Windows-32/
41+
cp mec-windows.exe binaries-Windows-32/
42+
cp bin/bfs.exe binaries-Windows-32/
43+
cp license.txt binaries-Windows-32/
44+
cp README-standalone.md binaries-Windows-32/
45+
- name: Upload Artifact GitHub Action
46+
uses: actions/upload-artifact@v3
47+
with:
48+
name: binaries-Linux-x86_64
49+
path: binaries-Linux-x86_64
50+
- name: Upload Artifact GitHub Action Windows
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: binaries-Windows-32
54+
path: binaries-Windows-32
55+
56+
macos:
57+
58+
runs-on: macos-11
59+
60+
steps:
61+
- uses: actions/checkout@v3
62+
- name: Install dependencies on MacOS and compile and produce BFS exes and standalone ME application
63+
if: runner.os == 'macOS'
64+
run: |
65+
echo `uname -a`
66+
ls
67+
brew install xquartz
68+
brew install gcc
69+
brew install make
70+
cd bfs && /usr/local/opt/make/libexec/gnubin/make CC=gcc-10
71+
cd ../src && /usr/local/opt/make/libexec/gnubin/make -f macos32gcc.gmk CC=gcc-10
72+
cd ..
73+
mkdir binaries-MacOS-11
74+
cp src/.macos32gcc-release-mecw/mecw binaries-MacOS-11/
75+
tar cfvz jasspa.tar.gz jasspa/*
76+
cp jasspa.tar.gz binaries-MacOS-11/
77+
rm -rf jasspa/company
78+
rm -rf jasspa/pixmaps
79+
rm -rf jasspa/contrib
80+
./bfs/bfs -a src/.macos32gcc-release-mecw/mecw -o me-macos.bin ./jasspa
81+
cp me-macos.bin binaries-MacOS-11/
82+
cp bfs/bfs binaries-MacOS-11/
83+
chmod 755 ./me-macos.bin
84+
./me-macos.bin -n -V
85+
cp README-standalone.md binaries-MacOS-11/
86+
echo '-1 ml-write &cat "Platform:" $platform' > platform.emf
87+
echo "exit-emacs" >> platform.emf
88+
TERM=xterm ./me-macos.bin @platform.emf
89+
- name: Upload Artifact GitHub Action
90+
uses: actions/upload-artifact@v3
91+
with:
92+
name: binaries-MacOS-11
93+
path: binaries-MacOS-11

0 commit comments

Comments
 (0)