diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 630abd0f6..2c6048891 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,38 +1,36 @@ name: "Build Library" on: push: branches: - main pull_request: merge_group: workflow_dispatch: env: DOTNET_NOLOGO: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_CLI_TELEMETRY_OPTOUT: true DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true jobs: build: - timeout-minutes: 30 + timeout-minutes: 6 strategy: matrix: os: [ubuntu-latest, windows-latest] dotnet: [7.0.203] runs-on: ${{ matrix.os }} name: Build library steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: dotnet-version: ${{ matrix.dotnet }} - - name: Restore dependencies - run: dotnet restore DisCatSharp.sln - name: Build library - run: dotnet build -c Release -v normal --no-restore DisCatSharp.sln + run: dotnet build -c Release -v normal DisCatSharp.sln - name: Test library run: dotnet test -v normal -c Release --no-restore --no-build DisCatSharp.sln