aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nightly.yml
blob: 5af23fe600b94959d9bd752dc42a789ee0bc0d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Nightly Releases

on:
  workflow_dispatch: 
  push:
    branches:
    - 'main'
    - 'feature/dedicated-server'
    paths-ignore:
      - '.gitignore'
      - '*.md'
      - '.github/*.md'

permissions:
  contents: write

jobs:
  build:
    name: Build Windows64
    runs-on: windows-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v6

    - name: Setup msbuild
      uses: microsoft/setup-msbuild@v2

    - name: Build
      run: MSBuild.exe MinecraftConsoles.sln /p:Configuration=Release /p:Platform="Windows64"

    - name: Zip Build
      run: 7z a -r LCEWindows64.zip ./x64/Release/*

    - name: Zip Dedicated Server Build
      run: 7z a -r LCEServerWindows64.zip ./x64/Minecraft.Server/Release/*

    - name: Update Client release
      uses: andelf/nightly-release@main
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: nightly
        name: Nightly Client Release
        body: |
          Requires at least Windows 7 and DirectX 11 compatible GPU to run. Compiled with MSVC v14.44.35207 in Release mode with Whole Program Optimization, as well as `/O2 /Ot /Oi /Ob3 /GF /fp:precise`.
          
          # 🚨 First time here? 🚨
          If you've never downloaded the game before, you need to download `LCEWindows64.zip` and extract it to the folder where you'd like to keep the game. The other files are included in this `.zip` file!
        files: |
            LCEWindows64.zip
            ./x64/Release/Minecraft.Client.exe
            ./x64/Release/Minecraft.Client.pdb

    - name: Update Dedicated Server release
      uses: andelf/nightly-release@main
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: nightly-dedicated-server
        name: Nightly Dedicated Server Release
        body: |
          Dedicated Server runtime for Windows64.

          Download `LCEServerWindows64.zip` and extract it to a folder where you'd like to keep the server runtime.
        files: |
            LCEServerWindows64.zip
            ./x64/Minecraft.Server/Release/Minecraft.Server.exe
            ./x64/Minecraft.Server/Release/Minecraft.Server.pdb