Skip to content

Commit faeab7e

Browse files
committed
Build on windows-latest
1 parent 0eee703 commit faeab7e

5 files changed

Lines changed: 13 additions & 36 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,8 @@ defaults:
2525
shell: bash
2626

2727
jobs:
28-
os-matrix:
29-
runs-on: ubuntu-latest
30-
outputs:
31-
matrix: ${{ steps.lookup.outputs.matrix }}
32-
steps:
33-
- name: 🤘 checkout
34-
uses: actions/checkout@v2
35-
36-
- name: 🔎 lookup
37-
id: lookup
38-
shell: pwsh
39-
run: |
40-
$path = './.github/workflows/os-matrix.json'
41-
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
42-
echo "matrix=$os" >> $env:GITHUB_OUTPUT
43-
4428
build:
45-
needs: os-matrix
46-
name: build-${{ matrix.os }}
47-
runs-on: ${{ matrix.os }}
48-
strategy:
49-
matrix:
50-
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
29+
runs-on: windows-latest
5130
steps:
5231
- name: 🤘 checkout
5332
uses: actions/checkout@v2
@@ -58,12 +37,6 @@ jobs:
5837
- name: 🙏 build
5938
run: dotnet build -m:1
6039

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

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
1313

14+
defaults:
15+
run:
16+
shell: bash
17+
1418
jobs:
1519
publish:
16-
runs-on: ubuntu-latest
20+
runs-on: windows-latest
1721
steps:
1822
- name: 🤘 checkout
1923
uses: actions/checkout@v2

.netconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
weak
4949
[file ".github/workflows/build.yml"]
5050
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
51-
sha = 13d67e2cf3f786c8189364fd29332aaa7dc575dc
52-
etag = c616df0877fba60002ccfc0397e9f731ddb22acbbb195a0598fedd4cac5f3135
53-
weak
51+
skip
5452
[file ".github/workflows/changelog.config"]
5553
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
5654
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
@@ -68,9 +66,7 @@
6866
weak
6967
[file ".github/workflows/publish.yml"]
7068
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
71-
sha = d3022567c9ef2bc9461511e53b8abe065afdf03b
72-
etag = 58601b5a71c805647ab26e84053acdfb8d174eaa93330487af8a5503753c5707
73-
weak
69+
skip
7470
[file ".github/workflows/test/action.yml"]
7571
url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml
7672
sha = 9a1b07589b9bde93bc12528e9325712a32dec418

Moq.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A5A5B8C3-D43F-43C6-AEC7-6FA7C35B8BE9}"
66
ProjectSection(SolutionItems) = preProject
77
.netconfig = .netconfig
8-
appveyor.yml = appveyor.yml
8+
.github\workflows\build.yml = .github\workflows\build.yml
99
CHANGELOG.md = CHANGELOG.md
1010
CONTRIBUTING.md = CONTRIBUTING.md
1111
src\Directory.props = src\Directory.props

src/Moq/Moq.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
<PackageReference Include="Castle.Core" Version="5.1.1" />
3737
<PackageReference Include="IFluentInterface" Version="2.1.0" PrivateAssets="All" />
3838
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
39+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
40+
<PrivateAssets>all</PrivateAssets>
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
</PackageReference>
3943
<PackageReference Include="NuGetizer" Version="1.0.5" />
4044
<PackageReference Include="TypeNameFormatter.Sources" Version="1.0.0" PrivateAssets="All" />
4145
</ItemGroup>

0 commit comments

Comments
 (0)