mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-11 01:51:29 +03:00
Build a single binary
This commit is contained in:
BIN
.github/scripts/smartctl
vendored
BIN
.github/scripts/smartctl
vendored
Binary file not shown.
29
.github/workflows/build.yaml
vendored
29
.github/workflows/build.yaml
vendored
@@ -10,33 +10,16 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-unix:
|
build:
|
||||||
strategy:
|
runs-on: ubuntu-24.04
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
clib: [glibc, musl]
|
|
||||||
include:
|
|
||||||
- clib: glibc
|
|
||||||
os: ubuntu-24.04
|
|
||||||
- clib: musl
|
|
||||||
os: ubuntu-latest
|
|
||||||
container: alpine:latest
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
container:
|
|
||||||
image: ${{ matrix.container }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies for glibc
|
|
||||||
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y qt6-base-dev qt6-tools-dev qt6-svg-dev libgl1-mesa-dev libxkbcommon-dev libvulkan-dev qmake6 smartmontools qt6ct patchelf
|
sudo apt install -y qt6-base-dev qt6-tools-dev qt6-svg-dev libgl1-mesa-dev libxkbcommon-dev libvulkan-dev qmake6 smartmontools qt6ct patchelf
|
||||||
if: ${{ matrix.clib == 'glibc' }}
|
|
||||||
- name: Install dependencies for musl
|
|
||||||
run: |
|
|
||||||
apk add git cmake make gcc g++ curl gcompat qt6-qtbase-dev qt6-qttools-dev qt6-qtbase-x11 qt6-qtsvg breeze smartmontools
|
|
||||||
git config --global --add safe.directory '*'
|
|
||||||
if: ${{ matrix.clib == 'musl' }}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@@ -48,7 +31,6 @@ jobs:
|
|||||||
export APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 VERSION=anylinux
|
export APPIMAGE_EXTRACT_AND_RUN=1 ARCH=x86_64 VERSION=anylinux
|
||||||
curl -sSfL "https://github.com/probonopd/go-appimage/releases/download/832/appimagetool-823-x86_64.AppImage" -o appimagetool-static.AppImage
|
curl -sSfL "https://github.com/probonopd/go-appimage/releases/download/832/appimagetool-823-x86_64.AppImage" -o appimagetool-static.AppImage
|
||||||
chmod a+x *.AppImage
|
chmod a+x *.AppImage
|
||||||
chmod a+x .github/scripts/smartctl
|
|
||||||
|
|
||||||
mkdir -p AppDir/usr/bin/../share/applications
|
mkdir -p AppDir/usr/bin/../share/applications
|
||||||
cp build/QDiskInfo AppDir/usr/bin/
|
cp build/QDiskInfo AppDir/usr/bin/
|
||||||
@@ -77,6 +59,5 @@ jobs:
|
|||||||
- name: Upload Binaries
|
- name: Upload Binaries
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: QDiskInfo-Qt6-${{ matrix.clib }}-bin
|
name: QDiskInfo-Qt6-bin
|
||||||
path: ./build/QDiskInfo
|
path: ./build/QDiskInfo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user