From 07ea04730d1725599b55c4e47d9800547b475c1b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 28 Apr 2024 11:15:29 +1000 Subject: [PATCH] again --- .github/workflows/release.yml | 66 ++++++++++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8081291..54a2429 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,14 +28,26 @@ jobs: # Download Linux artifacts - name: Retrieve Linux binaries run: | - wget https://cdn.classicube.net/client/latest/ClassiCube -O cc-nix64 - wget https://cdn.classicube.net/client/latest/ClassiCube.32 -O cc-nix32 + wget https://cdn.classicube.net/client/latest/ClassiCube -O cc-linux-64 + wget https://cdn.classicube.net/client/latest/ClassiCube.32 -O cc-linux-32 # Download macOS artifacts - name: Retrieve macOS binaries run: | - wget https://cdn.classicube.net/client/latest/ClassiCube.64.osx -O cc-mac64 - wget https://cdn.classicube.net/client/latest/ClassiCube.osx -O cc-mac32 + wget https://cdn.classicube.net/client/latest/ClassiCube.64.osx -O cc-mac-64 + wget https://cdn.classicube.net/client/latest/ClassiCube.osx -O cc-mac-32 + + # Download RPI artifacts + - name: Retrieve RPI binaries + run: | + wget https://cdn.classicube.net/client/latest/cc-rpi64 -O cc-rpi-64 + wget https://cdn.classicube.net/client/latest/ClassiCube.rpi -O cc-rpi-32 + + # Download FreeBSD artifacts + - name: Retrieve macOS binaries + run: | + wget https://cdn.classicube.net/client/latest/cc-freebsd-64 -O cc-freebsd-64 + wget https://cdn.classicube.net/client/latest/cc-freebsd-32 -O cc-freebsd-32 - name: Generate builds id: compile @@ -62,13 +74,21 @@ jobs: rm ClassiCube/ClassiCube.exe } + # Generate FreeBSD builds + make_unix_tar cc-freebsd32.tar.gz cc-freebsd-32 + make_unix_tar cc-freebsd64.tar.gz cc-freebsd-64 + + # Generate RPI builds + make_unix_tar cc-rpi32.tar.gz cc-rpi-32 + make_unix_tar cc-rpi64.tar.gz cc-rpi-64 + # Generate Linux builds - make_unix_tar cc-linux32.tar.gz cc-nix32 - make_unix_tar cc-linux64.tar.gz cc-nix64 + make_unix_tar cc-linux32.tar.gz cc-linux-32 + make_unix_tar cc-linux64.tar.gz cc-linux-64 # Generate macOS builds - make_unix_tar cc-mac32.tar.gz cc-mac32 - make_unix_tar cc-mac64.tar.gz cc-mac64 + make_unix_tar cc-mac32.tar.gz cc-mac-32 + make_unix_tar cc-mac64.tar.gz cc-mac-64 # Generate Windows builds make_windows_zip cc-win32.zip cc-w32.exe @@ -121,4 +141,32 @@ jobs: if: ${{ always() && steps.compile.outcome == 'success' }} with: SOURCE_FILE: 'cc-win64.zip' - DEST_NAME: 'cc-win64.zip' \ No newline at end of file + DEST_NAME: 'cc-win64.zip' + + + # Generate RPI release files + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'cc-rpi32.tar.gz' + DEST_NAME: 'cc-rpi32.tar.gz' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'cc-rpi64.tar.gz' + DEST_NAME: 'cc-rpi64.tar.gz' + + + # Generate FreeBSD release files + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'cc-freebsd32.tar.gz' + DEST_NAME: 'cc-freebsd32.tar.gz' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'cc-freebsd64.tar.gz' + DEST_NAME: 'cc-freebsd64.tar.gz' \ No newline at end of file