ci(release): Switch from action-prepare-release to Craft #553
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| jobs: | |
| build: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: microsoft/setup-msbuild@v2 | |
| if: matrix.os == 'windows-latest' | |
| # Needed for Android SDK setup step | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0 | |
| with: | |
| log-accepted-android-sdk-licenses: false | |
| - name: Install .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.100 | |
| - name: Install Workloads (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| sudo dotnet workload restore | |
| sudo chown -R $USER ~/.local/share/NuGet || true | |
| sudo chown -R $USER ~/.nuget || true | |
| - name: Install Workloads (Windows/Linux) | |
| if: matrix.os != 'macos-latest' | |
| run: dotnet workload restore | |
| - name: Run batch build script | |
| if: matrix.os == 'windows-latest' | |
| shell: cmd | |
| run: build.cmd | |
| - name: Run bash build script | |
| if: matrix.os != 'windows-latest' | |
| run: ./build.sh | |
| - name: Publish coverage report | |
| uses: codecov/codecov-action@v3 | |
| - name: Archive Artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'macos-latest' | |
| with: | |
| name: ${{ github.sha }} | |
| if-no-files-found: error | |
| path: | | |
| ${{ github.workspace }}/src/SymbolCollector.Console/*.zip | |
| ${{ github.workspace }}/src/SymbolCollector.Android/bin/Release/**/publish/*Signed.apk | |
| ${{ github.workspace }}/src/SymbolCollector.Android/obj/Release/**/*.so | |
| ${{ github.workspace }}/src/SymbolCollector.Server/publish/*.zip |