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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
|
needs: pre-build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -17,12 +41,14 @@ jobs:
|
||||||
repo: https://github.com/dolphin-emu/dolphin.git
|
repo: https://github.com/dolphin-emu/dolphin.git
|
||||||
cmake_args: "-DENABLE_SDL=ON"
|
cmake_args: "-DENABLE_SDL=ON"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up build dependencies
|
- name: Download appimagetool artifact
|
||||||
run: |
|
uses: actions/download-artifact@v3
|
||||||
sudo apt-get update
|
with:
|
||||||
sudo apt-get install -y cmake make git wget patch
|
name: appimagetool
|
||||||
|
path: .
|
||||||
|
|
||||||
- name: Remove previous appimage directory
|
- name: Remove previous appimage directory
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -51,7 +77,7 @@ jobs:
|
||||||
|
|
||||||
- name: Publish AppImage
|
- name: Publish AppImage
|
||||||
if: success()
|
if: success()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.project.name }}-AppImage
|
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
|
CTestTestfile.cmake
|
||||||
_deps
|
_deps
|
||||||
CMakeUserPresets.json
|
CMakeUserPresets.json
|
||||||
|
|
||||||
|
appimagetool
|
||||||
|
|
|
||||||
|
|
@ -66,10 +66,13 @@ build_appimage() {
|
||||||
cp "${APP_NAME}.png" "$APPDIR/"
|
cp "${APP_NAME}.png" "$APPDIR/"
|
||||||
|
|
||||||
# Download appimagetool if not already present (placed one level above the clone directory)
|
# 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
|
wget -O ../appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
chmod +x ../appimagetool
|
chmod +x ../appimagetool
|
||||||
fi
|
else
|
||||||
|
echo "appimagetool already exists. Skipping download."
|
||||||
|
fi
|
||||||
|
|
||||||
# Create the AppImage using appimagetool
|
# Create the AppImage using appimagetool
|
||||||
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue