Skip to content

Commit

Permalink
Build on windows-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 2, 2023
1 parent b8905bc commit 291b68a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 36 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,8 @@ defaults:
shell: bash

jobs:
os-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.lookup.outputs.matrix }}
steps:
- name: 🤘 checkout
uses: actions/checkout@v2

- name: 🔎 lookup
id: lookup
shell: pwsh
run: |
$path = './.github/workflows/os-matrix.json'
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
echo "matrix=$os" >> $env:GITHUB_OUTPUT
build:
needs: os-matrix
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
runs-on: windows-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
Expand All @@ -58,12 +37,6 @@ jobs:
- name: 🙏 build
run: dotnet build -m:1

- name: ⚙ GNU grep
if: matrix.os == 'macOS-latest'
run: |
brew install grep
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
- name: 🧪 test
uses: ./.github/workflows/test

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ env:
DOTNET_NOLOGO: true
Configuration: Release

defaults:
run:
shell: bash

jobs:
publish:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
Expand Down
8 changes: 2 additions & 6 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
weak
[file ".github/workflows/build.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
sha = 13d67e2cf3f786c8189364fd29332aaa7dc575dc
etag = c616df0877fba60002ccfc0397e9f731ddb22acbbb195a0598fedd4cac5f3135
weak
skip
[file ".github/workflows/changelog.config"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
Expand All @@ -68,9 +66,7 @@
weak
[file ".github/workflows/publish.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
sha = d3022567c9ef2bc9461511e53b8abe065afdf03b
etag = 58601b5a71c805647ab26e84053acdfb8d174eaa93330487af8a5503753c5707
weak
skip
[file ".github/workflows/test/action.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml
sha = 9a1b07589b9bde93bc12528e9325712a32dec418
Expand Down
2 changes: 1 addition & 1 deletion Moq.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A5A5B8C3-D43F-43C6-AEC7-6FA7C35B8BE9}"
ProjectSection(SolutionItems) = preProject
.netconfig = .netconfig
appveyor.yml = appveyor.yml
.github\workflows\build.yml = .github\workflows\build.yml
CHANGELOG.md = CHANGELOG.md
CONTRIBUTING.md = CONTRIBUTING.md
src\Directory.props = src\Directory.props
Expand Down
4 changes: 4 additions & 0 deletions src/Moq/Moq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<PackageReference Include="Castle.Core" Version="5.1.1" />
<PackageReference Include="IFluentInterface" Version="2.1.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="1.0.5" />
<PackageReference Include="TypeNameFormatter.Sources" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
Expand Down

0 comments on commit 291b68a

Please sign in to comment.