-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.43 KB
/
binaries.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
name: Binaries CI
on:
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
- name: make bfs binary
run: make bfs-bin
- name: make me binary
run: |
sudo apt install build-essential mingw-w64 gcc-mingw-w64-i686
sudo apt install libz-mingw-w64 libz-mingw-w64-dev
make me-bin
make mingw-w32-compile
- name: make me-standalone binary
run: make me-bfs-bin
- name: Make me-standalone binary
run: |
mkdir binaries-Linux-x86_64
mkdir binaries-Windows-32
cp bfs/bfs binaries-Linux-x86_64/
cp me-linux.bin binaries-Linux-x86_64/me-linux.bin
cp license.txt binaries-Linux-x86_64/
cp README-standalone.md binaries-Linux-x86_64/
cp me-windows.exe binaries-Windows-32/
cp mec-windows.exe binaries-Windows-32/
cp bin/bfs.exe binaries-Windows-32/
cp license.txt binaries-Windows-32/
cp README-standalone.md binaries-Windows-32/
- name: Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: binaries-Linux-x86_64
path: binaries-Linux-x86_64
- name: Upload Artifact GitHub Action Windows
uses: actions/upload-artifact@v3
with:
name: binaries-Windows-32
path: binaries-Windows-32