Updated build scripts
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
This commit is contained in:
parent
6c1a3ec2f7
commit
ffaab52752
90
.github/workflows/AUR_publish.yml
vendored
90
.github/workflows/AUR_publish.yml
vendored
|
@ -7,48 +7,56 @@ on:
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
aur-publish:
|
aur-publish-stable:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out sources
|
- name: Check out sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
# Checks out the latest tag
|
# Checks out the latest tag
|
||||||
- run: |
|
- run: |
|
||||||
git stash save "Action stashing changes"
|
git stash save "Action stashing changes"
|
||||||
latestTag=$(git describe --abbrev=0 --tags)
|
latestTag=$(git describe --abbrev=0 --tags)
|
||||||
git checkout $latestTag
|
git checkout $latestTag
|
||||||
|
|
||||||
- name: Publish AUR Stable package
|
- name: Publish AUR Stable package
|
||||||
uses: ulises-jeremias/github-actions-aur-publish@v1
|
uses: ulises-jeremias/github-actions-aur-publish@v1
|
||||||
with:
|
with:
|
||||||
pkgname: swayfx
|
pkgname: swayfx
|
||||||
pkgbuild: ./build-scripts/aur/PKGBUILD
|
pkgbuild: ./build-scripts/aur/PKGBUILD
|
||||||
assets: |
|
assets: |
|
||||||
./build-scripts/aur/50-systemd-user.conf
|
./build-scripts/aur/50-systemd-user.conf
|
||||||
./build-scripts/aur/sway.install
|
./build-scripts/aur/sway.install
|
||||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
commit_message: Update AUR package
|
commit_message: Update AUR package
|
||||||
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
|
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
|
||||||
update_pkgver: false
|
update_pkgver: false
|
||||||
|
|
||||||
# Checks out the the Master branch
|
aur-publish-git:
|
||||||
- run: |
|
runs-on: ubuntu-latest
|
||||||
git checkout master
|
steps:
|
||||||
- name: Publish AUR -git package
|
- name: Check out sources
|
||||||
uses: ulises-jeremias/github-actions-aur-publish@v1
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
pkgname: swayfx-git
|
fetch-depth: 0
|
||||||
pkgbuild: ./build-scripts/aur-git/PKGBUILD
|
# Checks out the the Master branch
|
||||||
assets: |
|
- run: |
|
||||||
./build-scripts/aur-git/50-systemd-user.conf
|
git checkout master
|
||||||
./build-scripts/aur-git/sway.install
|
|
||||||
commit_username: ${{ secrets.AUR_USERNAME }}
|
- name: Publish AUR -git package
|
||||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
uses: ulises-jeremias/github-actions-aur-publish@v1
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
with:
|
||||||
commit_message: Update AUR package
|
pkgname: swayfx-git
|
||||||
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
|
pkgbuild: ./build-scripts/aur-git/PKGBUILD
|
||||||
update_pkgver: false
|
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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Check build for Arch.
|
name: Check git build for Arch.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -10,7 +10,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
arch-build:
|
arch-build-git:
|
||||||
container: archlinux:latest
|
container: archlinux:latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -27,9 +27,3 @@ jobs:
|
||||||
uses: edlanglois/pkgbuild-action@v1
|
uses: edlanglois/pkgbuild-action@v1
|
||||||
with:
|
with:
|
||||||
pkgdir: ./swayfx/build-scripts/aur-git
|
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
|
|
29
.github/workflows/arch-build-stable.yml
vendored
Normal file
29
.github/workflows/arch-build-stable.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Check stable 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-stable:
|
||||||
|
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: Stable makepkg build and check
|
||||||
|
id: makepkg
|
||||||
|
uses: edlanglois/pkgbuild-action@v1
|
||||||
|
with:
|
||||||
|
pkgdir: ./swayfx/build-scripts/aur
|
9
.github/workflows/fedora-copr.yml
vendored
9
.github/workflows/fedora-copr.yml
vendored
|
@ -16,10 +16,17 @@ jobs:
|
||||||
- name: Install API token for copr-cli
|
- name: Install API token for copr-cli
|
||||||
env:
|
env:
|
||||||
# To generate a new token: https://copr.fedorainfracloud.org/api/.
|
# To generate a new token: https://copr.fedorainfracloud.org/api/.
|
||||||
|
API_LOGIN: ${{ secrets.COPR_API_LOGIN }}
|
||||||
|
API_USERNAME: ${{ secrets.COPR_API_USERNAME }}
|
||||||
API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }}
|
API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$HOME/.config"
|
mkdir -p "$HOME/.config"
|
||||||
echo "$API_TOKEN_CONTENT" > "$HOME/.config/copr"
|
# To generate a new token: https://copr.fedorainfracloud.org/api/.
|
||||||
|
echo "[copr-cli]" >> "$HOME/.config/copr"
|
||||||
|
echo "login = $API_LOGIN" >> "$HOME/.config/copr"
|
||||||
|
echo "username = $API_USERNAME" >> "$HOME/.config/copr"
|
||||||
|
echo "token = $API_TOKEN_CONTENT" >> "$HOME/.config/copr"
|
||||||
|
echo "copr_url = https://copr.fedorainfracloud.org" >> "$HOME/.config/copr"
|
||||||
|
|
||||||
- name: Install tooling for source RPM build
|
- name: Install tooling for source RPM build
|
||||||
run: |
|
run: |
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ test/
|
||||||
build/
|
build/
|
||||||
build-*/
|
build-*/
|
||||||
!build-scripts
|
!build-scripts
|
||||||
|
!build-scripts/*
|
||||||
.lvimrc
|
.lvimrc
|
||||||
config-debug
|
config-debug
|
||||||
wayland-*-protocol.*
|
wayland-*-protocol.*
|
||||||
|
|
|
@ -42,7 +42,7 @@ optdepends=(
|
||||||
backup=(etc/sway/config)
|
backup=(etc/sway/config)
|
||||||
arch=("i686" "x86_64")
|
arch=("i686" "x86_64")
|
||||||
url="https://github.com/WillPower3309/swayfx"
|
url="https://github.com/WillPower3309/swayfx"
|
||||||
source=("${url}/releases/download/$pkgver/swayfx-$pkgver.tar.gz"
|
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/$pkgver.tar.gz"
|
||||||
50-systemd-user.conf)
|
50-systemd-user.conf)
|
||||||
sha512sums=(
|
sha512sums=(
|
||||||
"SKIP"
|
"SKIP"
|
||||||
|
@ -56,7 +56,7 @@ build() {
|
||||||
arch-meson \
|
arch-meson \
|
||||||
-Dsd-bus-provider=libsystemd \
|
-Dsd-bus-provider=libsystemd \
|
||||||
-Dwerror=false \
|
-Dwerror=false \
|
||||||
"$_pkgname" build
|
"${_pkgname}-${pkgver}" build
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ package() {
|
||||||
|
|
||||||
DESTDIR="$pkgdir" meson install -C build
|
DESTDIR="$pkgdir" meson install -C build
|
||||||
|
|
||||||
cd "$_pkgname"
|
cd "${_pkgname}-${pkgver}"
|
||||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do
|
for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do
|
||||||
install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts"
|
install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts"
|
||||||
|
|
Loading…
Reference in a new issue