ci: fix Linux packaging workflow with specific Ubuntu 20.04 image

This commit is contained in:
Gadfly 2025-03-09 21:10:52 +08:00
parent 89f655c84d
commit 6877e05566
No known key found for this signature in database

View file

@ -69,6 +69,7 @@ jobs:
linux: linux:
name: Package Linux name: Package Linux
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ubuntu:20.04
strategy: strategy:
matrix: matrix:
runtime: [linux-x64, linux-arm64] runtime: [linux-x64, linux-arm64]
@ -77,9 +78,10 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download package dependencies - name: Download package dependencies
run: | run: |
sudo add-apt-repository universe export DEBIAN_FRONTEND=noninteractive
sudo apt-get update ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
sudo apt-get install desktop-file-utils rpm libfuse2 apt-get update
apt-get install -y curl wget git dpkg-dev fakeroot tzdata zip unzip desktop-file-utils rpm libfuse2 file build-essential binutils
- name: Download build - name: Download build
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@ -89,6 +91,7 @@ jobs:
env: env:
VERSION: ${{ inputs.version }} VERSION: ${{ inputs.version }}
RUNTIME: ${{ matrix.runtime }} RUNTIME: ${{ matrix.runtime }}
APPIMAGE_EXTRACT_AND_RUN: 1
run: | run: |
mkdir build/SourceGit mkdir build/SourceGit
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit