Skip to content

Commit 17ded33

Browse files
committed
Separate PR workflow from main workflow
1 parent c9bb4be commit 17ded33

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ on:
1111
- '.github/workflows/sponsors.yml'
1212
- '.github/workflows/translators.yml'
1313
- 'Graphics/*'
14-
pull_request:
15-
branches:
16-
- dev
17-
paths-ignore:
18-
- '**/*.md'
19-
- crowdin.yml
14+
2015
env:
2116
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
2217
DOTNET_CLI_TELEMETRY_OPTOUT: true

.github/workflows/pr.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: EarTrumpet (PR Build)
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
paths-ignore:
7+
- '**/*.md'
8+
- crowdin.yml
9+
10+
env:
11+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
12+
DOTNET_CLI_TELEMETRY_OPTOUT: true
13+
14+
jobs:
15+
pr-build:
16+
name: 🔨 Build Base
17+
runs-on: windows-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Restore packages
24+
run: dotnet restore EarTrumpet.sln
25+
shell: cmd
26+
27+
- name: Build EarTrumpet (unsigned for PR validation)
28+
shell: cmd
29+
run: >
30+
dotnet publish
31+
/p:PublishProfile=x86
32+
/p:Platform=x86
33+
EarTrumpet\EarTrumpet.csproj
34+
35+
dotnet publish
36+
/p:PublishProfile=x64
37+
/p:Platform=x64
38+
EarTrumpet\EarTrumpet.csproj
39+
40+
dotnet publish
41+
/p:PublishProfile=arm64
42+
/p:Platform=arm64
43+
EarTrumpet\EarTrumpet.csproj

0 commit comments

Comments
 (0)