mirror of
https://github.com/RetroDECK/AppImages.git
synced 2025-04-11 02:55:09 +00:00
AppImageTool is now downloaded once
This commit is contained in:
parent
6c24e9495a
commit
9d4cc49ac2
40
.github/workflows/appimage_maker.yml
vendored
40
.github/workflows/appimage_maker.yml
vendored
|
|
@ -8,7 +8,31 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pre-build:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
appimagetool-path: ${{ steps.upload.outputs.artifact-path }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake make git wget patch
|
||||
wget -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
chmod +x appimagetool
|
||||
|
||||
# Upload appimagetool so it can be used in the build job
|
||||
- name: Upload appimagetool artifact
|
||||
id: upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: appimagetool
|
||||
path: appimagetool
|
||||
|
||||
build:
|
||||
needs: pre-build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -17,12 +41,14 @@ jobs:
|
|||
repo: https://github.com/dolphin-emu/dolphin.git
|
||||
cmake_args: "-DENABLE_SDL=ON"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake make git wget patch
|
||||
- name: Download appimagetool artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: appimagetool
|
||||
path: .
|
||||
|
||||
- name: Remove previous appimage directory
|
||||
run: |
|
||||
|
|
@ -51,7 +77,7 @@ jobs:
|
|||
|
||||
- name: Publish AppImage
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.project.name }}-AppImage
|
||||
path: appimages/${{ matrix.project.name }}/*.AppImage
|
||||
path: appimages/${{ matrix.project.name }}/*.AppImage
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -10,3 +10,5 @@ compile_commands.json
|
|||
CTestTestfile.cmake
|
||||
_deps
|
||||
CMakeUserPresets.json
|
||||
|
||||
appimagetool
|
||||
|
|
|
|||
|
|
@ -66,10 +66,13 @@ build_appimage() {
|
|||
cp "${APP_NAME}.png" "$APPDIR/"
|
||||
|
||||
# Download appimagetool if not already present (placed one level above the clone directory)
|
||||
if [ ! -f "../appimagetool" ]; then
|
||||
if [ ! -f "../appimagetool" ]; then
|
||||
echo "Downloading appimagetool..."
|
||||
wget -O ../appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
chmod +x ../appimagetool
|
||||
fi
|
||||
else
|
||||
echo "appimagetool already exists. Skipping download."
|
||||
fi
|
||||
|
||||
# Create the AppImage using appimagetool
|
||||
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
||||
|
|
|
|||
Loading…
Reference in a new issue