From b1d5ea225343391595a810a75a660198ac01ecc1 Mon Sep 17 00:00:00 2001 From: GabsPuNs Date: Sun, 7 Jun 2026 16:46:00 -0400 Subject: [PATCH] Delete nightly.yml --- .github/workflows/nightly.yml | 190 ---------------------------------- 1 file changed, 190 deletions(-) delete mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml deleted file mode 100644 index ca70026c..00000000 --- a/.github/workflows/nightly.yml +++ /dev/null @@ -1,190 +0,0 @@ -name: Nightly Release - -on: - workflow_dispatch: - push: - branches: - - 'main' - paths: - - '**' - - '!.gitignore' - - '!*.md' - - '!.github/**' - - '.github/workflows/nightly.yml' - -permissions: - contents: write - packages: write - -concurrency: - group: nightly-tu30 - cancel-in-progress: true - -jobs: - build: - runs-on: windows-2025-vs2026 - - strategy: - matrix: - platform: [Windows64] - - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Set platform lowercase - run: echo "MATRIX_PLATFORM=$('${{ matrix.platform }}'.ToLower())" >> $env:GITHUB_ENV - - - name: Setup MSVC - uses: ilammy/msvc-dev-cmd@v1 - - - name: Setup CMake - uses: lukka/get-cmake@latest - - - name: Run CMake - uses: lukka/run-cmake@v10 - env: - VCPKG_ROOT: "" # Disable vcpkg for CI builds - with: - configurePreset: ${{ env.MATRIX_PLATFORM }} - buildPreset: ${{ env.MATRIX_PLATFORM }}-release - buildPresetAdditionalArgs: "['--target', 'Minecraft.Client', 'Minecraft.Server']" - - - name: Client 7z Build - run: 7z a -r ProjectZenithX64.7z ./build/${{ env.MATRIX_PLATFORM }}/Minecraft.Client/Release/* "-x!*.ipdb" "-x!*.iobj" - - - name: Server 7z Build - run: 7z a -r ProjectZenithServerX64.7z ./build/${{ env.MATRIX_PLATFORM }}/Minecraft.Server/Release/* "-x!*.ipdb" "-x!*.iobj" - - - name: Run CMake (AVX Client Build) - uses: lukka/run-cmake@v10 - env: - VCPKG_ROOT: "" # Disable vcpkg for CI builds - with: - configurePreset: ${{ env.MATRIX_PLATFORM }} - configurePresetAdditionalArgs: "['-DCMAKE_CXX_FLAGS=/arch:AVX']" - buildPreset: ${{ env.MATRIX_PLATFORM }}-release - buildPresetAdditionalArgs: "['--target', 'Minecraft.Client']" - - - name: Client AVX 7z Build - run: 7z a -r ProjectZenithAVX.7z ./build/${{ env.MATRIX_PLATFORM }}/Minecraft.Client/Release/* "-x!*.ipdb" "-x!*.iobj" - - - name: Stage artifacts - run: | - New-Item -ItemType Directory -Force -Path staging - Copy-Item ProjectZenithX64.7z staging/ - Copy-Item ProjectZenithServerX64.7z staging/ - Copy-Item ProjectZenithAVX.7z staging/ - - - name: Upload artifacts - uses: actions/upload-artifact@v6 - with: - name: build-${{ matrix.platform }} - path: staging/* - - release: - needs: build - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Download all artifacts - uses: actions/download-artifact@v7 - with: - path: artifacts - merge-multiple: true - - - name: Read release notes - id: read_notes - shell: bash - run: | - echo "RELEASE_BODY<> $GITHUB_ENV - cat NOTES.md >> $GITHUB_ENV - echo "" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - - - name: Update release - uses: andelf/nightly-release@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: nightly-tu30 - name: Project Zenith TU30-Dev - body: ${{ env.RELEASE_BODY }} - files: | - artifacts/* - - docker: - name: Build and Push Docker Image - runs-on: ubuntu-latest - needs: build - - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Download dedicated server runtime from artifacts - uses: actions/download-artifact@v4 - with: - name: build-Windows64 - path: .artifacts/ - - - name: Prepare Docker runtime directory - shell: bash - run: | - set -euo pipefail - - rm -rf runtime - mkdir -p runtime - 7z x .artifacts/ProjectZenithServerX64.7z -oruntime - - - name: Compute image name - id: image - shell: bash - run: | - owner="$(echo "${{ vars.CONTAINER_REGISTRY_OWNER || github.repository_owner }}" | tr '[:upper:]' '[:lower:]')" - image_tag="nightly" - # if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then - # image_tag="nightly-test" - # fi - echo "owner=$owner" >> "$GITHUB_OUTPUT" - echo "image=ghcr.io/$owner/projectzenith-tu30dev-dedicated-server" >> "$GITHUB_OUTPUT" - echo "image_tag=$image_tag" >> "$GITHUB_OUTPUT" - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ steps.image.outputs.image }} - tags: | - type=raw,value=${{ steps.image.outputs.image_tag }} - - - name: Login to GHCR - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ secrets.GHCR_USERNAME || github.actor }} - password: ${{ secrets.GHCR_TOKEN || secrets.GITHUB_TOKEN }} - - - name: Build and push image - uses: docker/build-push-action@v6 - with: - context: . - file: docker/dedicated-server/Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - MC_RUNTIME_DIR=runtime - - cleanup: - needs: [build, release, docker] - if: always() - runs-on: ubuntu-latest - steps: - - name: Cleanup artifacts - uses: geekyeggo/delete-artifact@v5 - with: - name: build-*