This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
ci: Bump actions' version #93
This file contains 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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Gradle | |
uses: null2264/actions/gradle-setup@6712f98d592b126629afd27dc4870c93b53426b4 | |
with: | |
java: 21 | |
- name: Get mod versions | |
id: get-mod-versions | |
run: | | |
echo "versions=$(ls versions | grep -e '.\.' | tr '\n' ' ')" >> $GITHUB_OUTPUT | |
- name: Build with Gradle | |
uses: null2264/actions/replaymod-preprocessor-compile@6712f98d592b126629afd27dc4870c93b53426b4 | |
with: | |
versions: ${{ steps.get-mod-versions.outputs.versions }} | |
- name: Archive build results | |
run: tar -I zstd -cf build.tar.zst versions/*/build/libs | |
- name: Upload build folder | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: build.tar.zst | |
if-no-files-found: error | |
retention-days: 3 |