Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jul 29, 2024
1 parent 11f3781 commit c9d4237
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linux

on:
push:
paths-ignore:
- 'README.md'
- 'docs/'
pull_request:
paths-ignore:
- 'README.md'
- 'docs/'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build
run: sh ./build.sh
24 changes: 24 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: MacOS

on:
push:
paths-ignore:
- 'README.md'
- 'docs/'
pull_request:
paths-ignore:
- 'README.md'
- 'docs/'

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build
run: bash ./build.sh
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish
on:
push:
branches:
- test
- master
paths:
- RELEASE_NOTES.md
- .github/workflows/publish.yml
Expand All @@ -23,9 +23,9 @@ jobs:
run: dotnet paket restore
- name: Build
shell: cmd
run: dotnet build -c Release src\Aardvark.sln
run: dotnet build -c Release src\Aardvark.OpenCV.sln
- name: Test
run: dotnet test src\Aardvark.sln -c Release --no-build --nologo --logger:"console;verbosity=normal"
run: dotnet test src\Aardvark.OpenCV.sln -c Release --no-build --nologo --logger:"console;verbosity=normal"
- name: Pack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

dotnet tool restore
dotnet paket restore
dotnet build src/Aardvark.OpenCV.sln

0 comments on commit c9d4237

Please sign in to comment.