mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
ci: drop .deb and .tar.gz pkgs from releases
This commit is contained in:
@@ -22,24 +22,10 @@ jobs:
|
||||
# MacOS Builds:
|
||||
- platform: "macos-latest"
|
||||
args: "--target aarch64-apple-darwin"
|
||||
build_type: "standard"
|
||||
- platform: "macos-latest"
|
||||
args: "--target x86_64-apple-darwin"
|
||||
build_type: "standard"
|
||||
|
||||
# Linux Builds:
|
||||
- platform: "ubuntu-22.04"
|
||||
args: ""
|
||||
build_type: "standard"
|
||||
- platform: "ubuntu-latest"
|
||||
args: ""
|
||||
build_type: "flatpak"
|
||||
- platform: "ubuntu-24.04-arm"
|
||||
args: ""
|
||||
build_type: "standard"
|
||||
- platform: "ubuntu-24.04-arm"
|
||||
args: ""
|
||||
build_type: "flatpak"
|
||||
# Linux AppImage Builds (via container):
|
||||
- platform: "ubuntu-latest"
|
||||
appimage_variant: "glibc-2.28-x86_64"
|
||||
build_type: "appimage"
|
||||
@@ -53,16 +39,21 @@ jobs:
|
||||
appimage_variant: "musl-aarch64"
|
||||
build_type: "appimage"
|
||||
|
||||
# Linux Flatpak Builds:
|
||||
- platform: "ubuntu-latest"
|
||||
args: ""
|
||||
build_type: "flatpak"
|
||||
- platform: "ubuntu-24.04-arm"
|
||||
args: ""
|
||||
build_type: "flatpak"
|
||||
|
||||
# Windows Builds:
|
||||
- platform: "windows-latest"
|
||||
args: "--target x86_64-pc-windows-msvc"
|
||||
build_type: "standard"
|
||||
- platform: "windows-latest"
|
||||
args: "--target i686-pc-windows-msvc"
|
||||
build_type: "standard"
|
||||
- platform: "windows-latest"
|
||||
args: "--target aarch64-pc-windows-msvc"
|
||||
build_type: "standard"
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
@@ -71,7 +62,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Rust stable
|
||||
if: matrix.build_type == 'standard'
|
||||
if: runner.os != 'Linux'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: >
|
||||
@@ -79,42 +70,11 @@ jobs:
|
||||
matrix.platform == 'windows-latest' && 'x86_64-pc-windows-msvc,i686-pc-windows-msvc,aarch64-pc-windows-msvc' || '' }}
|
||||
|
||||
- name: Cache Cargo registry and target
|
||||
if: matrix.build_type == 'standard'
|
||||
if: runner.os != 'Linux'
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: ${{ matrix.platform }}-${{ matrix.args }}
|
||||
|
||||
- name: Install dependencies (ubuntu only)
|
||||
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt install -y \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
libpcsclite-dev \
|
||||
libudev-dev \
|
||||
libvulkan-dev \
|
||||
vulkan-tools \
|
||||
libwayland-dev \
|
||||
wayland-protocols \
|
||||
libxkbcommon-dev \
|
||||
libxcb1-dev \
|
||||
libxkbcommon-x11-dev \
|
||||
libfontconfig1-dev \
|
||||
libasound2-dev \
|
||||
libdbus-1-dev \
|
||||
file \
|
||||
desktop-file-utils \
|
||||
libx11-dev \
|
||||
libxcb-shape0-dev \
|
||||
libxcb-xfixes0-dev libusb-1.0-0-dev podman patchelf librsvg2-dev libappindicator3-dev libwebkit2gtk-4.1-dev
|
||||
|
||||
- name: Install dependencies (ubuntu-arm64 only)
|
||||
if: matrix.platform == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
sudo apt-get install xdg-utils
|
||||
|
||||
- name: Extract version from Cargo.toml
|
||||
id: get_version
|
||||
shell: bash
|
||||
@@ -125,31 +85,27 @@ jobs:
|
||||
echo "version=$version" >> $GITHUB_ENV
|
||||
|
||||
- name: Install cargo-packager
|
||||
if: matrix.build_type == 'standard'
|
||||
if: runner.os != 'Linux'
|
||||
uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: cargo-packager
|
||||
|
||||
- name: Build Binary
|
||||
if: matrix.build_type == 'standard'
|
||||
if: runner.os != 'Linux'
|
||||
run: cargo build --release ${{ matrix.args }}
|
||||
|
||||
- name: Build and Package
|
||||
if: matrix.platform != 'ubuntu-22.04' && matrix.platform != 'ubuntu-24.04-arm' && matrix.build_type == 'standard'
|
||||
if: runner.os != 'Linux'
|
||||
run: cargo packager --release ${{ matrix.args }}
|
||||
|
||||
- name: Build and Package (Linux)
|
||||
if: (matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-24.04-arm') && matrix.build_type == 'standard'
|
||||
run: cargo packager --release --formats deb,pacman
|
||||
|
||||
- name: Build AppImage (via Container)
|
||||
- name: Build AppImage
|
||||
if: matrix.build_type == 'appimage'
|
||||
run: |
|
||||
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/picoforge-appimage-builder:${{ matrix.appimage_variant }}"
|
||||
echo "Pulling container: ${IMAGE_NAME}"
|
||||
podman pull "${IMAGE_NAME}"
|
||||
|
||||
mkdir -p target/release
|
||||
chmod +x .github/scripts/build_appimage.sh
|
||||
echo "Running build inside container..."
|
||||
podman run --rm \
|
||||
-e GITHUB_REPOSITORY_OWNER \
|
||||
@@ -179,11 +135,9 @@ jobs:
|
||||
prerelease: false
|
||||
files: |
|
||||
*.flatpak
|
||||
target/release/*.deb
|
||||
target/release/*.appimage
|
||||
target/release/*.AppImage
|
||||
target/release/*.zsync
|
||||
target/release/*.tar.gz
|
||||
target/release/*.msi
|
||||
target/release/*.dmg
|
||||
target/release/*.app
|
||||
@@ -200,13 +154,22 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
sync-spec:
|
||||
needs: build-and-release
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Sync Spec Version & Tag
|
||||
if: matrix.platform == 'ubuntu-22.04' && matrix.build_type == 'standard'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
chmod +x .github/scripts/sync_spec_version.sh
|
||||
|
||||
podman run --rm \
|
||||
--security-opt label=disable \
|
||||
-v "$PWD":/workspace \
|
||||
|
||||
Reference in New Issue
Block a user