mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-05-10 19:21:42 +00:00
test: update workflows
This commit is contained in:
parent
f650f629cb
commit
16faf95b67
3 changed files with 11 additions and 95 deletions
|
|
@ -1,20 +1,24 @@
|
||||||
name: Update lsfg-vk Flatpak (23.08)
|
name: (Test) Build lsfg-vk Flatpak extensions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["develop", "flatpak"]
|
branches: ["test/deploying"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-flatpak:
|
flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version: ["23.08", "24.08"]
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-23.08
|
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-${{ matrix.version }}
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build Flatpak extension
|
- name: Build Flatpak extension (${{ matrix.version }})
|
||||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
with:
|
with:
|
||||||
bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk_23.08.flatpak"
|
bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk_${{ matrix.version }}.flatpak"
|
||||||
manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml"
|
manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_${{ matrix.version }}.yml"
|
||||||
verbose: true
|
verbose: true
|
||||||
20
.github/workflows/update-flatpak-24.08.yml
vendored
20
.github/workflows/update-flatpak-24.08.yml
vendored
|
|
@ -1,20 +0,0 @@
|
||||||
name: Update lsfg-vk Flatpak (24.08)
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["develop", "flatpak"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-flatpak:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
|
|
||||||
options: --privileged
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Build Flatpak extension
|
|
||||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
|
||||||
with:
|
|
||||||
bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk_24.08.flatpak"
|
|
||||||
manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml"
|
|
||||||
verbose: true
|
|
||||||
68
.github/workflows/update-ui.yml
vendored
68
.github/workflows/update-ui.yml
vendored
|
|
@ -1,68 +0,0 @@
|
||||||
name: Update lsfg-vk-ui app image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["develop"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-ui:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: archlinux:latest
|
|
||||||
steps:
|
|
||||||
- name: Prepare cache for pacman packages
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /var/cache/pacman/pkg
|
|
||||||
key: archlinux-pacman-cache
|
|
||||||
- name: Create cache directories
|
|
||||||
run: |
|
|
||||||
mkdir -p /root/.cargo
|
|
||||||
mkdir -p /root/.rustup
|
|
||||||
- name: Prepare cache for rustup
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /root/.rustup
|
|
||||||
key: archlinux-rustup-cache
|
|
||||||
- name: Prepare cache for cargo
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /root/.cargo
|
|
||||||
key: archlinux-cargo-cache
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
pacman -Syu --noconfirm \
|
|
||||||
base-devel git \
|
|
||||||
clang llvm \
|
|
||||||
rustup gcc \
|
|
||||||
cmake ninja \
|
|
||||||
vulkan-headers vulkan-icd-loader \
|
|
||||||
xorg wayland wayland-protocols mesa-utils \
|
|
||||||
wget gdk-pixbuf2 gtk4 libadwaita fuse
|
|
||||||
- name: Update Rust toolchain
|
|
||||||
run: |
|
|
||||||
rustup default stable
|
|
||||||
- name: Update Cargo tools
|
|
||||||
run: |
|
|
||||||
cargo install cargo-appimage
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Grab continuous appimagetool
|
|
||||||
run: |
|
|
||||||
wget -O appimagetool https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
|
||||||
chmod +x appimagetool
|
|
||||||
./appimagetool --appimage-extract
|
|
||||||
mv squashfs-root/usr/bin/* ui/
|
|
||||||
- name: Build UI with Cargo
|
|
||||||
run: |
|
|
||||||
cd ui
|
|
||||||
PATH=$PATH:$PWD cargo appimage
|
|
||||||
cd ..
|
|
||||||
mv ui/target/appimage/ui.AppImage lsfg-vk-ui.AppImage
|
|
||||||
- name: Upload lsfg-vk artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: lsfg-vk-ui
|
|
||||||
path: |
|
|
||||||
lsfg-vk-ui.AppImage
|
|
||||||
Loading…
Add table
Reference in a new issue