mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Add PKGBUILD stable and -git, AUR publish and Arch build GitHub Actions (#31)
* Create AUR_publish.yml * Added PKGBUILD * Switched AUR publish addon * Added arch-build action * Remove useless step in arch-build * Checkout latest tag instead of master for Arch and Fedora publish actions * Added -git PKGBUILD and added wlroots < 0.16 as dependency * Checkout master before running swayfx-git aur script * Check build for stable PKGBUILD after -git version * Removed spaces in wlroots depends version
This commit is contained in:
parent
c82adeb7c0
commit
7990b32dd2
10 changed files with 324 additions and 2 deletions
54
.github/workflows/AUR_publish.yml
vendored
Normal file
54
.github/workflows/AUR_publish.yml
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
name: Package for the AUR
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
aur-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Checks out the latest tag
|
||||
- run: |
|
||||
git stash save "Action stashing changes"
|
||||
latestTag=$(git describe --abbrev=0 --tags)
|
||||
git checkout $latestTag
|
||||
|
||||
- name: Publish AUR Stable package
|
||||
uses: ulises-jeremias/github-actions-aur-publish@v1
|
||||
with:
|
||||
pkgname: swayfx
|
||||
pkgbuild: ./build-scripts/aur/PKGBUILD
|
||||
assets: |
|
||||
./build-scripts/aur/50-systemd-user.conf
|
||||
./build-scripts/aur/sway.install
|
||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: Update AUR package
|
||||
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
|
||||
update_pkgver: false
|
||||
|
||||
# Checks out the the Master branch
|
||||
- run: |
|
||||
git checkout master
|
||||
- name: Publish AUR -git package
|
||||
uses: ulises-jeremias/github-actions-aur-publish@v1
|
||||
with:
|
||||
pkgname: swayfx-git
|
||||
pkgbuild: ./build-scripts/aur-git/PKGBUILD
|
||||
assets: |
|
||||
./build-scripts/aur-git/50-systemd-user.conf
|
||||
./build-scripts/aur-git/sway.install
|
||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: Update AUR package
|
||||
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
|
||||
update_pkgver: false
|
||||
35
.github/workflows/arch-build.yml
vendored
Normal file
35
.github/workflows/arch-build.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Check build for Arch.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
arch-build:
|
||||
container: archlinux:latest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# It is necessary to checkout into sub-directory, because of some weird ownership problems cause by using containers
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
path: swayfx
|
||||
|
||||
- name: Git makepkg build and check
|
||||
id: makepkg
|
||||
uses: edlanglois/pkgbuild-action@v1
|
||||
with:
|
||||
pkgdir: ./swayfx/build-scripts/aur-git
|
||||
|
||||
- name: Stable makepkg build and check
|
||||
id: makepkg
|
||||
uses: edlanglois/pkgbuild-action@v1
|
||||
with:
|
||||
pkgdir: ./swayfx/build-scripts/aur
|
||||
2
.github/workflows/fedora-build.yml
vendored
2
.github/workflows/fedora-build.yml
vendored
|
|
@ -10,7 +10,7 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
package:
|
||||
fedora-build:
|
||||
container: fedora:37
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
|
|||
8
.github/workflows/fedora-copr.yml
vendored
8
.github/workflows/fedora-copr.yml
vendored
|
|
@ -8,7 +8,7 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
package:
|
||||
fedora-copr:
|
||||
container: fedora:latest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -31,6 +31,12 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
path: swayfx
|
||||
# Checks out the latest tag
|
||||
- run: |
|
||||
cd swayfx
|
||||
git stash save "Action stashing changes"
|
||||
latestTag=$(git describe --abbrev=0 --tags)
|
||||
git checkout $latestTag
|
||||
|
||||
- name: Copy spec into root dir
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue