Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OudomMunint authored Jun 6, 2023
1 parent 508b9c0 commit 0558bdb
Showing 1 changed file with 24 additions and 71 deletions.
95 changes: 24 additions & 71 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,82 +20,35 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry

jobs:
Windows-Build:
runs-on: windows-latest
Build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Install Node.js v16
uses: actions/setup-node@v2
with:
node-version: '16.x'

- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
- uses: actions/checkout@v2

- name: Restore dependencies
run: dotnet restore Benchmark.csproj

- name: Build Proj
run: dotnet build Benchmark.csproj -c Release -f net7.0

- name: Build sln
run: dotnet build Benchmark.sln -c Release -f net7.0
- name: Install Node.js v16
uses: actions/setup-node@v2
with:
node-version: '16.x'

Ubuntu-Build:
runs-on: ubuntu-latest
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'

steps:
- uses: actions/checkout@v2

- name: Install Node.js v16
uses: actions/setup-node@v2
with:
node-version: '16.x'

- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'

- name: Restore dependencies
run: dotnet restore Benchmark.csproj

- name: Build Proj
run: dotnet build Benchmark.csproj -c Release -f net7.0

- name: Build sln
run: dotnet build Benchmark.sln -c Release -f net7.0
- name: Restore dependencies
run: dotnet restore Benchmark.csproj

MacOS-Build:
runs-on: macos-latest
- name: Build Proj
run: dotnet build Benchmark.csproj -c Release -f net7.0

steps:
- uses: actions/checkout@v2

- name: Install Node.js v16
uses: actions/setup-node@v2
with:
node-version: '16.x'

- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
- name: Build sln
run: dotnet build Benchmark.sln -c Release -f net7.0

- name: Restore dependencies
run: dotnet restore Benchmark.csproj

- name: Build Proj
run: dotnet build Benchmark.csproj -c Release -f net7.0

- name: Build sln
run: dotnet build Benchmark.sln -c Release -f net7.0

- name: Create Release
uses: ncipollo/[email protected]
with:
tag: v1.0.1
- name: Create Release
uses: ncipollo/[email protected]
with:
tag: v1.1.0

0 comments on commit 0558bdb

Please sign in to comment.