Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuki committed Oct 25, 2023
1 parent c3080de commit fe56aa1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/build-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,8 @@ jobs:
name: nuget
path: ./publish/

canary-build-experimental:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-dotnet
- run: echo "MAGICONION_VERSION=ci-$(date '+%Y%m%d-%H%M%S')+${GITHUB_SHA:0:6}" >> $GITHUB_ENV
- run: echo "MAGICONION_VERSION=${MAGICONION_VERSION}"
# build
- run: dotnet build ./src/MagicOnion.Server.OpenTelemetry/ -c ${{ env.BUILD_CONFIG }} -p:VersionSuffix=${MAGICONION_VERSION}
# test
- run: dotnet pack ./src/MagicOnion.Server.OpenTelemetry/MagicOnion.Server.OpenTelemetry.csproj -c ${{ env.BUILD_CONFIG }} --include-symbols --include-source --no-build -p:VersionSuffix=${MAGICONION_VERSION} -o ./publish
- uses: actions/upload-artifact@v1
with:
name: nuget-experimental
path: ./publish/

canary-push:
needs: [canary-build, canary-build-experimental]
needs: [canary-build]
runs-on: ubuntu-latest
timeout-minutes: 5
env:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ jobs:
- run: dotnet test -c Debug MagicOnion.sln
- run: dotnet test -c Release MagicOnion.sln

build-dotnet-experimental:
name: "Build .NET Experimental libraries"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-dotnet
- run: dotnet build ./src/MagicOnion.Server.OpenTelemetry/ -c ${{ env.BUILD_CONFIG }}

build-unity:
name: "Build Unity package"
if: "((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:'))"
Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,6 @@ jobs:
name: nuget
path: ./publish/

build-dotnet-experimental:
needs: [update-packagejson]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
ref: ${{ needs.update-packagejson.outputs.sha }}
- uses: ./.github/actions/setup-dotnet
- run: echo ${{ needs.update-packagejson.outputs.sha }}
- run: dotnet build ./src/MagicOnion.Server.OpenTelemetry/ -c Release
- run: dotnet pack ./src/MagicOnion.Server.OpenTelemetry/MagicOnion.Server.OpenTelemetry.csproj -c Release --no-build -o ./publish
- uses: actions/upload-artifact@v1
with:
name: nuget-experimental
path: ./publish/

build-unity:
needs: [update-packagejson]
strategy:
Expand Down Expand Up @@ -201,7 +184,7 @@ jobs:
create-release:
if: github.event.inputs.dry_run == 'false'
needs:
[update-packagejson, update-sourcegenerator-unity, build-dotnet, build-dotnet-experimental, build-unity]
[update-packagejson, update-sourcegenerator-unity, build-dotnet, build-unity]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit fe56aa1

Please sign in to comment.