Skip to content

Commit

Permalink
Rework builds to run tests and benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Dec 9, 2023
1 parent 5169bf0 commit 18aa848
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: test
name: ci

on:
push:
branches: main
pull_request:
branches: main

Expand Down Expand Up @@ -60,3 +59,33 @@ jobs:
with:
name: 'vbamc_packages_${{ matrix.configuration }}'
path: '${{ github.workspace }}/dist'

benchmark:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: ['ubuntu-22.04', 'windows-2022', 'macos-13.0']

env:
Configuration: 'Release'

steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true

- name: setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8

- name: restore
run: dotnet restore

- name: build
run: dotnet build --no-restore -c Release tests/VbaCompiler.Benchmark/VbaCompiler.Benchmark.csproj

- name: run
run: dotnet run -c Release --project tests/VbaCompiler.Benchmark/VbaCompiler.Benchmark.csproj

0 comments on commit 18aa848

Please sign in to comment.