Skip to content

Commit

Permalink
Script(fix): Fix release assets (#427)
Browse files Browse the repository at this point in the history
* Script(fix): install libsuop3

* do action on push

* 0fixup

* update

* update

* update

* update
  • Loading branch information
SilverRainZ authored Oct 21, 2024
1 parent cb6c166 commit 5b5bcee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pack-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SRAIN_TAG_DATE=`git log $SRAIN_TAG -n 1 --pretty=format:"%ad" --date=format:'%a,
# Make dependencies: gettext, libconfig-dev, libgtk-3-dev, libsecret-1-dev, libsoup2.4-dev, libssl-dev, pkg-config
# Runtime dependencies: glib-networking, libgtk-3-0, libsecret-1-0, libconfig9, libsoup2.4
# Python3 script: python3 python3-requests
apt-get install -y debhelper dpkg-dev gettext libconfig-dev libgtk-3-dev libsecret-1-dev libsoup2.4-dev libssl-dev pkg-config glib-networking libgtk-3-0 libsecret-1-0 libconfig9 libsoup2.4 python3 python3-requests meson libayatana-appindicator3-dev;
apt-get install -y debhelper dpkg-dev gettext libconfig-dev libgtk-3-dev libsecret-1-dev libsoup-3.0-dev libssl-dev pkg-config glib-networking libgtk-3-0 libsecret-1-0 libconfig9 libsoup-3.0-0 python3 python3-requests meson libayatana-appindicator3-dev;
# Download the debian files.
git clone https://github.com/SrainApp/srain-contrib.git --depth 1;
cd srain-contrib;
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@ name: release assets
on:
release:
types: [created]
# push:

jobs:
debian-bullseye:
runs-on: ubuntu-latest
container: debian:bullseye
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@v2
- uses: actions/checkout@v4
- name: build
run: .github/workflows/pack-debian.sh
- name: upload the assets
Expand All @@ -28,13 +30,15 @@ jobs:
GH_REPO: ${{ github.repository }}
GH_REF: ${{ github.ref }}
steps:
- uses: actions/checkout@v2
- 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-libsoup 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
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`;
Expand Down

0 comments on commit 5b5bcee

Please sign in to comment.