Skip to content

Workflow file for this run

name: ColorMC构建
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 设置.NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- name: 更新源码
shell: bash
working-directory: ./
run: |
chmod a+x ./build/update.sh
./build/update.sh
- name: 构建
shell: bash
working-directory: ./
run: |
chmod a+x ./build/build-ubuntu.sh
./build/build-ubuntu.sh
chmod a+x ./build/build-windows.sh
./build/build-windows.sh
chmod a+x ./build/build-macos.sh
./build/build-macos.sh
- name: 更新构建文件
uses: actions/upload-artifact@v4
with:
name: "colormc"
path: build_out/