2020-12-29 22:43:10 +04:00
|
|
|
name: AppImage
|
|
|
|
|
2021-01-01 02:26:37 +04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
2020-12-29 22:43:10 +04:00
|
|
|
jobs:
|
|
|
|
appimage:
|
|
|
|
name: pineapple bundled as appimage
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2021-05-11 04:44:52 +04:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-01-19 22:45:23 +04:00
|
|
|
- name: Prepare ccache timestamp
|
|
|
|
id: ccache_cache_timestamp
|
|
|
|
shell: cmake -P {0}
|
|
|
|
run: |
|
|
|
|
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
|
|
|
|
message("::set-output name=timestamp::${current_date}")
|
2020-12-29 22:43:10 +04:00
|
|
|
- name: cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
2021-01-19 22:45:23 +04:00
|
|
|
path: ~/.ccache
|
|
|
|
key: build-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
|
2020-12-29 22:43:10 +04:00
|
|
|
restore-keys: |
|
2021-01-19 22:45:23 +04:00
|
|
|
build-ccache-
|
2020-12-29 22:43:10 +04:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
|
|
|
mkdir -p "$HOME/.ccache"
|
|
|
|
docker pull quriouspixel/yuzu:latest
|
|
|
|
docker run -u root -e ENABLE_COMPATIBILITY_REPORTING --env-file .github/workflows/docker.env -v $(pwd):/yuzu -v "$HOME/.ccache":/root/.ccache quriouspixel/yuzu:latest /bin/bash /yuzu/.github/workflows/docker.sh
|
|
|
|
- name: Package AppImage
|
|
|
|
run: echo "Success!"
|
|
|
|
- name: Upload AppImage
|
|
|
|
run: |
|
|
|
|
ls -al artifacts/
|
|
|
|
wget -c https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz
|
|
|
|
tar xfv ghr_v0.13.0_linux_amd64.tar.gz
|
|
|
|
version=$(ls artifacts/version |grep Yuzu-EA | cut -d "-" -f 3 | cut -d "." -f 1)
|
2022-02-01 13:37:32 +04:00
|
|
|
ghr_v0.13.0_linux_amd64/ghr -recreate -n "EA-$version (auto-updater)" -b "Yuzu build with Auto-Updater builtin (linux only)" continuous artifacts/
|
2021-02-03 02:16:22 +04:00
|
|
|
ghr_v0.13.0_linux_amd64/ghr -replace -n "EA-$version" -b "early-access version $version" EA-$version artifacts/version/
|
2020-12-29 22:43:10 +04:00
|
|
|
|
|
|
|
env:
|
|
|
|
DEFAULT_BRANCH: main
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|