-
Notifications
You must be signed in to change notification settings - Fork 22
133 lines (122 loc) · 4.37 KB
/
release.yaml
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release-main:
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Package source
run: |
POP_NAME=poptracker_`echo ${{ env.RELEASE_VERSION }} | tr '.' '-'`
cd ..
tar --exclude-vcs -cJvf "${POP_NAME}_full-source.tar.xz" PopTracker
- name: Create Release
uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
body: |
see [CHANGELOG.md](../v${{ env.RELEASE_VERSION }}/CHANGELOG.md)
and [README.md](../v${{ env.RELEASE_VERSION }}/README.md)
files: "../*.tar.xz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-appimage:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev p7zip wget
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Set version
run: |
sed -i "s/version: latest/version: ${{ env.RELEASE_VERSION }}/g" linux/AppImageBuilder.yml
- name: Get appimage-builder
run: |
wget -q -O appimage-builder https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder
./appimage-builder --appimage-extract
echo -e '#/bin/sh\n./squashfs-root/AppRun "$@"' > appimage-builder
- name: Build AppImage
run: |
./appimage-builder --recipe linux/AppImageBuilder.yml
- name: Create Release
uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev p7zip wget
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Build RELEASE
run: make native CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }} -j2
- name: Run tests
run: make test CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }}
- name: Build DIST # this builds a .tar.xz
run: make CONF=DIST VERSION=${{ env.RELEASE_VERSION }}
- name: Create Release
uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
dist/*.tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-macos:
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew install coreutils SDL2 sdl2_ttf sdl2_image [email protected] automake libtool autoconf
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Build RELEASE
run: make native CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }} -j3
- name: Run tests
run: make test CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }}
- name: Build DIST # this builds the app bundle, zips it and maybe .dmg in the future
run: make CONF=DIST VERSION=${{ env.RELEASE_VERSION }}
- name: Create Release
uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
dist/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#release-windows:
# The windows dist zips are created with a custom SDL on a bleeding edge arch linux mingw. See `make cross`.