mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-20 04:53:19 +03:00
94
.github/workflows/build.yaml
vendored
94
.github/workflows/build.yaml
vendored
@@ -3,56 +3,70 @@ name: Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- "**.md"
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
permissions:
|
||||||
container: ghcr.io/pkgforge-dev/archlinux:latest
|
actions: read
|
||||||
|
security-events: write
|
||||||
|
contents: write
|
||||||
|
runs-on: ${{ matrix.runs-on }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: aarch64
|
||||||
|
platform: linux/arm64
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
- arch: x86_64
|
||||||
|
platform: linux/amd64
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container:
|
||||||
|
image: ghcr.io/pkgforge-dev/archlinux:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm \
|
pacman -Syu --noconfirm \
|
||||||
base-devel \
|
base-devel \
|
||||||
breeze \
|
breeze \
|
||||||
clang \
|
clang \
|
||||||
cmake \
|
cmake \
|
||||||
libxkbcommon \
|
libxkbcommon \
|
||||||
mesa \
|
mesa \
|
||||||
patchelf \
|
patchelf \
|
||||||
qt6-base \
|
qt6-base \
|
||||||
qt6ct \
|
qt6ct \
|
||||||
qt6-svg \
|
qt6-svg \
|
||||||
qt6-tools \
|
qt6-tools \
|
||||||
smartmontools \
|
smartmontools \
|
||||||
vulkan-devel \
|
vulkan-devel \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=MinSizeRel -DQT_VERSION_MAJOR=6 -DENABLE_TRANSLATIONS=ON
|
cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=MinSizeRel -DQT_VERSION_MAJOR=6 -DENABLE_TRANSLATIONS=ON
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- name: Package AppImage
|
- name: Package AppImage
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./qdiskinfo-appimage.sh
|
chmod +x ./qdiskinfo-appimage.sh
|
||||||
./qdiskinfo-appimage.sh
|
./qdiskinfo-appimage.sh
|
||||||
|
|
||||||
- name: Upload AppImage
|
- name: Upload AppImage
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: QDiskInfo-anylinux-AppImage
|
name: QDiskInfo-${{ matrix.arch }}-AppImage
|
||||||
path: ./QDiskInfo*.AppImage
|
path: ./QDiskInfo*.AppImage
|
||||||
|
|
||||||
- name: Upload Binaries
|
- name: Upload Binaries
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: QDiskInfo-Qt6-bin
|
name: QDiskInfo-Qt6-${{ matrix.arch }}-bin
|
||||||
path: ./build/QDiskInfo
|
path: ./build/QDiskInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user