-
-
Notifications
You must be signed in to change notification settings - Fork 35
60 lines (59 loc) · 2.12 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
name: release assets
on:
release:
types: [created]
# push:
jobs:
debian-bullseye:
runs-on: ubuntu-latest
container: debian:bookworm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
GH_REF: ${{ github.ref }}
steps:
- name: upgrade the packages
run: apt-get update && apt-get upgrade -y && apt-get install -y git
- uses: actions/checkout@v4
- name: build
run: .github/workflows/pack-debian.sh
- name: upload the assets
run: /usr/bin/python3 .github/workflows/release-assets-upload.py
mingw64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
GH_REF: ${{ github.ref }}
steps:
- uses: actions/checkout@v4
# with:
# fetch-depth: 0 # for on-push + `git describe --tags`
- uses: msys2/setup-msys2@v2
name: Init MSYS2/MINGW64 environment
with:
update: true
msystem: MINGW64
install: base-devel git curl zip mingw-w64-x86_64-python-requests mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 mingw-w64-x86_64-libconfig mingw-w64-x86_64-libsoup3 mingw-w64-x86_64-libsecret mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-glib-networking mingw-w64-x86_64-meson mingw-w64-x86_64-appstream-glib
- name: Build
run: |
SRAIN_TAG=`git describe --tags`;
INSTALL_DIR=srain-$SRAIN_TAG-mingw64-install;
PACKAGE_DIR=srain-$SRAIN_TAG-mingw64;
PACKAGE_NAME=$PACKAGE_DIR.zip;
PREFIX=a/_temp/msys64/mingw64; # Hardcoded meson prefix
mkdir -pv out;
mkdir -pv $INSTALL_DIR;
meson setup -Ddoc_builders=[] \
--buildtype=release \
-Dapp_indicator=false \
builddir && \
ninja -C builddir && \
DESTDIR=$PWD/$INSTALL_DIR ninja -C builddir install && \
.github/workflows/pack-mingw64.sh $INSTALL_DIR/$PREFIX $PACKAGE_DIR $PACKAGE_NAME && \
mv $PACKAGE_NAME ./out
- name: Upload
run: /mingw64/bin/python3 .github/workflows/release-assets-upload.py