diff --git a/.github/actions/setup-dotnet/action.yaml b/.github/actions/setup-dotnet/action.yaml index a4c8b5c0e..a7ebea0af 100644 --- a/.github/actions/setup-dotnet/action.yaml +++ b/.github/actions/setup-dotnet/action.yaml @@ -2,11 +2,7 @@ name: Setup .NET SDKs runs: using: "composite" steps: - - uses: actions/setup-dotnet@v2 - with: - dotnet-version: | - 6.0.x - 7.0.x + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - name: "Prepare Environment Variables (.NET SDK)" shell: bash run: | diff --git a/.github/workflows/build-canary.yml b/.github/workflows/build-canary.yml index b7d39d4d8..a85de365d 100644 --- a/.github/workflows/build-canary.yml +++ b/.github/workflows/build-canary.yml @@ -18,7 +18,7 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - 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 diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 56df509eb..70337203d 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -20,7 +20,7 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - run: dotnet build -c ${{ env.BUILD_CONFIG }} ./MagicOnion.sln run-tests: @@ -29,7 +29,7 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - run: dotnet test -c Debug MagicOnion.sln - run: dotnet test -c Release MagicOnion.sln diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ccfb63df2..d9b7c9afd 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -82,7 +82,7 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ needs.update-packagejson.outputs.sha }} - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - name: Publish MagicOnion.Client.SourceGenerator.Unity run: dotnet publish -c ${{ env.BUILD_CONFIG }} -c Release ./src/MagicOnion.Client.SourceGenerator.Unity -o ./src/MagicOnion.Client.Unity/Assets/Scripts/MagicOnion/MagicOnion.Client/MagicOnion.Client.SourceGenerator.Unity - name: Remove .deps.json and .pdbs @@ -136,7 +136,7 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ needs.update-packagejson.outputs.sha }} - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - run: dotnet build -c ${{ env.BUILD_CONFIG }} ./MagicOnion.sln # pack nuget - run: dotnet pack -c ${{ env.BUILD_CONFIG }} ./MagicOnion.Packaging.slnf --include-symbols --include-source --no-build -o ./publish @@ -190,7 +190,7 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ needs.update-packagejson.outputs.sha }} - - uses: ./.github/actions/setup-dotnet + - uses: Cysharp/Actions/.github/actions/setup-dotnet@main # Create Release - uses: actions/create-release@v1 id: create_release