Skip to content

Commit c219184

Browse files
authored
Merge pull request #864 from knocte/wip/migrateToGithubActions
Migrate from AppVeyor to GitHubActions
2 parents e003139 + 8b75da1 commit c219184

File tree

3 files changed

+34
-17
lines changed

3 files changed

+34
-17
lines changed

.github/workflows/CI.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
buildAndTest:
9+
10+
runs-on:
11+
- windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: 6.0.428
19+
- name: Build & Run Tests
20+
run: |
21+
.\build.cmd
22+
- name: Upload artifact (bin)
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: bin
26+
path: bin
27+
- name: Upload artifact (dist)
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: dist
31+
path: dist

appveyor.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
rem change the target via -t, e.g.:
33
rem build -t PackNuget
44
cls
5-
dotnet tool restore
6-
dotnet paket restore
5+
dotnet tool restore || exit /b 1
6+
dotnet paket restore || exit /b 1
77
rem set FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION=8.0
88
rem Build with Fake or FSI:
9-
dotnet fake run build.fsx %*
9+
dotnet fake run build.fsx %* || exit /b 1
1010
rem dotnet fsi build.fsx %*

0 commit comments

Comments
 (0)