From 42784114072b48cfbc8c7b769830eec53e34138e Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 29 Dec 2020 10:43:10 -0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..2fd416384 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: AppImage + +#on: push + +jobs: + appimage: + name: pineapple bundled as appimage + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: cache + uses: actions/cache@v2 + with: + path: $HOME/.ccache + key: build-ccache + restore-keys: | + build-ccache + - 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) + ghr_v0.13.0_linux_amd64/ghr -recreate -n 'Continous build' -b "GitHub https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" continuous artifacts/ + ghr_v0.13.0_linux_amd64/ghr -recreate -n "Continuous build (EA-$version)" -b "GitHub https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" EA-$version artifacts/version/ + + env: + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}