build-nightly-snapshot #2175
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-nightly-snapshot | |
| on: | |
| schedule: | |
| - cron: "0 7 * * *" | |
| push: | |
| paths: | |
| - '.github/workflows/nightly.yml' | |
| env: | |
| WEBP_UTIL: libwebp-1.1.0-linux-x86-64 | |
| USELESS_VAR: 9 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: install-dep | |
| run: | | |
| sudo apt -y update || true | |
| sudo apt -y install git python3 python3-jinja2 python3-pip python3-setuptools python3-pil python3-bs4 zip unzip | |
| pip3 install --user git+https://github.com/FurryGamesIndex/python-markdown2 ruamel.yaml | |
| wget "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/${WEBP_UTIL}.tar.gz" | |
| tar xvf "${WEBP_UTIL}.tar.gz" | |
| - name: download | |
| run: | | |
| wget https://github.com/FurryGamesIndex/games/releases/download/_gh_assets/FGI-nightly.zip -O prev.zip || true | |
| unzip prev.zip || true | |
| [ -d FGI-nightly ] || echo "warning: getting prev build failed" | |
| mv FGI-nightly FGI-nightly-cache || true | |
| - name: gen | |
| env: | |
| FGI_OFFLINE_WEBP: 1 | |
| run: | | |
| python3 --version | |
| export PATH="./${WEBP_UTIL}/bin/:$PATH" | |
| cwebp -version | |
| gif2webp -version | |
| ./scripts/build-offline-version.sh FGI-nightly FGI-nightly-cache | |
| zip -r output.zip FGI-nightly | |
| zip -r output-webp.zip FGI-nightly-webp | |
| - name: upload-release-webp | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: output-webp.zip | |
| asset_name: FGI-nightly-webp.zip | |
| tag: _gh_assets | |
| overwrite: true | |
| - name: upload-release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: output.zip | |
| asset_name: FGI-nightly.zip | |
| tag: _gh_assets | |
| overwrite: true |