/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/devops/snippets/dotnet-build-github-action/build-validation.yml
34 строки
651 B
Nick Schonning
chore: update Actions versions in docs and samples (#31585)
06 окт 2022, 21:35
Не верифицирован
06 окт 2022, 21:35
2f4b32c
Код
Авторство
О чём код?
name: build on: push: pull_request: branches: [ main ] paths: - '**.cs' - '**.csproj' env: DOTNET_VERSION: '6.0.401' # The .NET SDK version to use jobs: build: name: build-${{matrix.os}} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v3 - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ env.DOTNET_VERSION }} - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore