mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
change the dotnet6 test workflow
This commit is contained in:
63
.github/workflows/msbuildnet6.yml
vendored
Normal file
63
.github/workflows/msbuildnet6.yml
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
name: .msbuildnet6
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dotnet6" ]
|
||||
paths:
|
||||
- '**.cs'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: dotnet6
|
||||
- name: shortsha
|
||||
id: vars
|
||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
- name: preBuild
|
||||
run: bash ${GITHUB_WORKSPACE}/runprebuild.sh
|
||||
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
- name: Build
|
||||
id: build
|
||||
run: dotnet build --configuration Release OpenSim.sln
|
||||
|
||||
- name: release
|
||||
if: success()
|
||||
run: zip -r LastDotNetBuild.zip bin ThirdPartyLicenses README.md CONTRIBUTORS.txt LICENSE.txt
|
||||
- uses: softprops/action-gh-release@v1
|
||||
if: success()
|
||||
with:
|
||||
tag_name: r${{ steps.vars.outputs.sha_short }}
|
||||
name: LastDotNetAutoBuild
|
||||
files: LastDotNetBuild.zip
|
||||
|
||||
- name: report push to irc
|
||||
if: github.event_name == 'push'
|
||||
uses: rectalogic/notify-irc@v1
|
||||
with:
|
||||
channel: "#opensim-dev"
|
||||
server: "irc.libera.chat"
|
||||
nickname: osgithub
|
||||
message: |
|
||||
${{ github.actor }} pushed to ${{ github.repository }}
|
||||
${{ join(github.event.commits.*.message, '\n') }}
|
||||
dotnet compile: ${{ steps.build.conclusion }}
|
||||
|
||||
- name: manual report to irc
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: rectalogic/notify-irc@v1
|
||||
with:
|
||||
channel: "#opensim-dev"
|
||||
server: "irc.libera.chat"
|
||||
nickname: osgithub
|
||||
message: |
|
||||
${{ github.repository }}
|
||||
dotnet compile: ${{ steps.build.conclusion }}
|
||||
Reference in New Issue
Block a user