Fix timeout one more time #13
This file contains 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 & Test | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
framework: [net471, netcoreapp2.1] | |
exclude: | |
- os: ubuntu-latest | |
framework: net471 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install .NET | |
uses: actions/setup-dotnet@main | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '11' | |
- name: Download Cement | |
run: | | |
Invoke-WebRequest "https://github.com/skbkontur/cement/releases/download/v1.0.58/63d70a890a8a69703c066965196021afb7a793c1.zip" -Out "cement.zip" | |
Expand-Archive "cement.zip" -Force -DestinationPath "./cement" | |
shell: pwsh | |
- name: Install Cement | |
run: | | |
cd ./cement | |
cd ./dotnet | |
chmod +x ./install.sh | |
./install.sh | |
~/bin/cm --version | |
shell: bash | |
if: runner.os != 'Windows' | |
- name: Install Cement | |
run: | | |
cd ./cement | |
cd ./dotnet | |
./install.cmd | |
cm --version | |
shell: cmd | |
if: runner.os == 'Windows' | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Init | |
run: | | |
cd .. | |
~/bin/cm init | |
shell: bash | |
- name: Update deps | |
run: | | |
~/bin/cm update-deps | |
shell: bash | |
- name: Build deps | |
run: | | |
~/bin/cm build-deps | |
shell: bash | |
- name: Build | |
run: | | |
dotnet build -c Release | |
- name: Test | |
run: dotnet test -c Release --logger GitHubActions --framework ${{ matrix.framework }} |