Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 2b24b34
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:25:42 2024 +0800

    Add release workflow

commit 9b8ee30
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:24:56 2024 +0800

    cp -> mv

commit 56d982f
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:18:13 2024 +0800

    mantic -> noble

commit d22c8c6
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:17:18 2024 +0800

    Fix permission denied again

commit a3b5a0d
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:14:26 2024 +0800

    Enable debug symbols

commit c28bea6
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:14:03 2024 +0800

    Do not create existing directory `out`

commit 449053f
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:12:25 2024 +0800

    Fix permission denied

commit d9c4a63
Author: Eric Long <[email protected]>
Date:   Sun Apr 21 03:06:34 2024 +0800

    Rename .deb packages according to distributions
  • Loading branch information
hack3ric committed Apr 20, 2024
1 parent cee37be commit f0326cf
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build-debs.yml → .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'Build .deb Packages'
name: Build .deb packages on push

on:
workflow_dispatch:
push:
workflow_dispatch:

jobs:
build-bookworm:
Expand All @@ -12,11 +12,13 @@ jobs:
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: -b -us -uc
docker-image: debian:bookworm-slim
- name: Rename
run: |
cd debian/artifacts
for _f in mimic*.deb; do sudo mv "$_f" "Debian-12_$_f"; done
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand All @@ -29,14 +31,15 @@ jobs:
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: -b -us -uc
docker-image: ubuntu:noble
- name: Rename
run: |
cd debian/artifacts
for _f in mimic*.deb; do sudo mv "$_f" "Ubuntu-24.04_$_f"; done
- name: Upload
uses: actions/upload-artifact@v4
with:
name: mantic
name: noble
path: debian/artifacts/*.deb

42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build .deb packages on release

on:
release:
types: [published]

jobs:
build-bookworm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: -b -us -uc
docker-image: debian:bookworm-slim
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd debian/artifacts
for _f in mimic*.deb; do sudo mv "$_f"Debian-12_$_f"; done
gh release upload ${{ github.ref }} *.deb
build-noble:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: -b -us -uc
docker-image: ubuntu:noble
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd debian/artifacts
for _f in mimic*.deb; do sudo mv "$_f" "Ubuntu-24.04_$_f"; done
gh release upload ${{ github.ref }} *.deb

0 comments on commit f0326cf

Please sign in to comment.