Skip to content

Commit 30d3403

Browse files
authored
Update compile-src.yml
1 parent cf939a4 commit 30d3403

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/compile-src.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@ name: SWG Source - Continuous Integration for src repo
22

33
on:
44
pull_request:
5-
branches: [ master ]
6-
7-
workflow_dispatch:
8-
5+
types:
6+
- opened
7+
- sychronize
8+
99
jobs:
1010
compile-src:
1111
runs-on: ubuntu-latest
1212
container: cekisswg/swg-vm3.01-i386:latest
1313
steps:
14-
- name: Run ANT Build
14+
- name: Clone repository
1515
run: |
1616
cd /home/swg/swg-main
17-
git clone https://github.com/SWG-Source/src.git
18-
cd src
17+
git clone --depth 1 --branch ${{ github.event.pull_request.base.ref }} ${{ github.repository }} pull-request
18+
19+
- name: Checkout pull request branch
20+
run: git -C pull-request checkout ${{ github.event.pull_request.head.ref }}
21+
22+
- name: Run ANT Build
23+
run: |
24+
cd /home/swg/swg-main/src
1925
ant build_src
26+
2027

0 commit comments

Comments
 (0)