Skip to content

Commit

Permalink
Merge pull request #367 from andreas-hilti/fix/build
Browse files Browse the repository at this point in the history
Fix build regarding  SwissLife-OSS/snapshooter#196
  • Loading branch information
jkowalleck authored May 20, 2024
2 parents 571c21b + 201415e commit 8e6269a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: .NET Core CI

on: [pull_request, workflow_dispatch]

env:
SNAPSHOOTER_STRICT_MODE: true

jobs:
# Fail if there are build warnings
#
Expand Down Expand Up @@ -49,7 +52,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# os: [ubuntu-latest, windows-latest, macos-latest]
# macos currently disabled. see issue https://github.com/SwissLife-OSS/snapshooter/issues/196.
os: [ubuntu-latest, windows-latest]
timeout-minutes: 30

steps:
Expand All @@ -58,6 +63,15 @@ jobs:
with:
dotnet-version: '6.0'

- name: SnapshooterHotfixSymlinkLinux
if: matrix.os == 'ubuntu-latest'
run: sudo ln -s "$GITHUB_WORKSPACE" /_
shell: bash
- name: SnapshooterHotfixSymlinkWindows
if: matrix.os == 'windows-latest'
run: New-Item -ItemType SymbolicLink -Path "/_" -Target "$env:GITHUB_WORKSPACE"
shell: pwsh

- name: Tests
run: |
dotnet restore
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ name: Release
on:
workflow_dispatch

env:
SNAPSHOOTER_STRICT_MODE: true

jobs:
release:
name: Release
Expand All @@ -35,6 +38,9 @@ jobs:
- uses: actions/[email protected]
with:
dotnet-version: '6.0'
- name: SnapshooterHotfixSymlinkLinux
run: sudo ln -s "$GITHUB_WORKSPACE" /_
shell: bash
# The tests should have already been run during the PR workflow, so this is really just a sanity check
- name: Tests
run: dotnet test
Expand Down

0 comments on commit 8e6269a

Please sign in to comment.