mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ci: Compress source with zstd
This commit is contained in:
committed by
mborgerson
parent
7157fe18ee
commit
806d2d9188
@@ -49,7 +49,7 @@ jobs:
|
||||
- name: Extract source package
|
||||
run: |
|
||||
mkdir src
|
||||
tar -xf xemu-*.tar.gz -C src --strip-components=2
|
||||
tar -xf xemu-*.tar.zst -C src --strip-components=2
|
||||
- name: Create debian changelog
|
||||
run: |
|
||||
pushd src
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
with:
|
||||
name: src
|
||||
- name: Extract source package
|
||||
run: tar -xf xemu-*.tar.gz --strip-components=2
|
||||
run: tar -xf xemu-*.tar.zst --strip-components=2
|
||||
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
with:
|
||||
name: src
|
||||
- name: Extract source package
|
||||
run: tar -xf xemu-*.tar.gz --strip-components=2
|
||||
run: tar -xf xemu-*.tar.zst --strip-components=2
|
||||
- name: Initialize compiler cache
|
||||
id: cache
|
||||
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v4
|
||||
|
||||
@@ -31,12 +31,11 @@ jobs:
|
||||
run: |
|
||||
pkg_name="xemu-${{ steps.version.outputs.pkg_version }}"
|
||||
tar_filename="${pkg_name}.tar"
|
||||
echo "pkg_filename=${tar_filename}.gz" >> $GITHUB_OUTPUT
|
||||
|
||||
tar_prefix="./${pkg_name}/"
|
||||
./scripts/archive-source.sh ${tar_filename} ${tar_prefix}
|
||||
tar -r --file "${tar_filename}" --transform "s,^./,${tar_prefix}," ./XEMU_COMMIT ./XEMU_VERSION
|
||||
gzip -1 "${tar_filename}"
|
||||
zstd "${tar_filename}"
|
||||
echo "pkg_filename=${tar_filename}.zst" >> $GITHUB_OUTPUT
|
||||
- name: Upload source package artifact
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v4
|
||||
with:
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
tag_name: ${{ inputs.tag }}
|
||||
draft: true
|
||||
files: |
|
||||
dist/xemu*.tar.gz
|
||||
dist/xemu*.tar.zst
|
||||
dist/xemu*-win-*.zip
|
||||
dist/xemu*-macos-universal*.zip
|
||||
dist/xemu*.AppImage
|
||||
|
||||
@@ -21,11 +21,11 @@ jobs:
|
||||
- name: Download release source
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: gh release download "${{ inputs.release }}" --repo="${GITHUB_REPOSITORY}" -p 'xemu-*.tar.gz'
|
||||
run: gh release download "${{ inputs.release }}" --repo="${GITHUB_REPOSITORY}" -p 'xemu-*.tar.zst'
|
||||
- name: Extract source package
|
||||
run: |
|
||||
mkdir src
|
||||
tar -C src -xf xemu-*.tar.gz --strip-components=2
|
||||
tar -C src -xf xemu-*.tar.zst --strip-components=2
|
||||
|
||||
# Ensure subprojects are uploaded
|
||||
find src/subprojects -name "*.gitignore" -exec rm {} \;
|
||||
|
||||
Reference in New Issue
Block a user