Skip to content

Commit 1c44f45

Browse files
committed
Update CI actions
1 parent 772f0f7 commit 1c44f45

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ jobs:
1515
# This workflow contains a single job called "build"
1616
build:
1717
# Build on the oldest supported ubuntu:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
2424

2525
- name: Install dependencies
26-
run: sudo apt install libgtk2.0-dev libprocps-dev
26+
run: |
27+
sudo apt update
28+
sudo apt install libgtk2.0-dev libprocps-dev
2729
2830
- name: Build .deb package
2931
run: make deb
@@ -34,13 +36,23 @@ jobs:
3436
name: Debian packages
3537
path: '*.deb'
3638

37-
- name: Publish AUR package
38-
uses: KSXGitHub/[email protected]
39-
with:
40-
pkgname: gatotray
41-
pkgbuild: ./PKGBUILD
42-
commit_username: gatopeich
43-
commit_email: ${{ secrets.AUR_EMAIL }}
44-
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
45-
ssh_keyscan_types: rsa,ecdsa,ed25519
46-
test: true
39+
aur-publish:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- name: Generate PKGBUILD
45+
run: make PKGBUILD
46+
47+
- name: Publish AUR package
48+
uses: KSXGitHub/[email protected]
49+
with:
50+
pkgname: gatotray
51+
pkgbuild: ./PKGBUILD
52+
commit_username: gatopeich
53+
commit_email: ${{ secrets.AUR_EMAIL }}
54+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
55+
ssh_keyscan_types: rsa,ecdsa,ed25519
56+
test: false
57+
# test_flags: --clean --syncdeps
58+
# post_process: gatotray || echo "Should fail by lack of DISPLAY"

PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ source=("https://github.com/gatopeich/gatotray/archive/refs/tags/v$pkgver.$pkgre
1111
sha256sums=('SKIP')
1212

1313
build() {
14-
cd "$srcdir/$pkgname-$pkgver"
14+
cd "$srcdir/$pkgname-$pkgver.$pkgrel"
1515
make
1616
}
1717

1818
package() {
19-
cd "$srcdir/$pkgname-$pkgver"
19+
cd "$srcdir/$pkgname-$pkgver.$pkgrel"
2020
make DESTDIR="$pkgdir" install
2121
}

0 commit comments

Comments
 (0)