This repository has been archived by the owner on May 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (81 loc) · 2.61 KB
/
release.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Release manually
run-name: Release manually
on:
workflow_dispatch:
permissions:
contents: write
jobs:
upload-release:
runs-on: ubuntu-latest
needs: [build-linux, build-windows]
steps:
- uses: actions/checkout@v1
- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: uploads
- name: Update release
uses: eine/tip@master
with:
tag: latest
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ./uploads/flappybird-linux.zip ./uploads/flappybird-macos.zip ./uploads/flappybird-windows.zip
build-linux:
runs-on: ubuntu-20.04 # for GLIBC 2.31
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: sudo apt install -y build-essential git cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Configuring CMake
run: python toolchain.py -c --target Release
- name: Building
run: python toolchain.py -b --target Release && mv ./build/release/flappy-bird ./flappy-bird
- name: Zip linux artifact
run: zip -r flappybird-linux ./flappy-bird
- name: Upload linux artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-linux.zip
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Configuring CMake
run: python toolchain.py -c --target Release
- name: Building
run: python toolchain.py -b --target Release && mv ./build/release/flappy-bird ./flappy-bird
- name: Zip macos artifact
run: zip -r flappybird-macos ./flappy-bird
- name: Upload macos artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-macos.zip
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Configure
run: python toolchain.py -c --target Release
- name: Build
run: python toolchain.py -b --target Release
- name: Zip windows artifact
run: powershell Compress-Archive build\release\flappy-bird.exe flappybird-windows.zip
- name: Upload windows artifact
uses: actions/upload-artifact@v1
with:
name: uploads
path: flappybird-windows.zip