mirror of
https://github.com/SWG-Source/src.git
synced 2026-01-15 23:05:01 -05:00
Update compile-src.yml
This commit is contained in:
21
.github/workflows/compile-src.yml
vendored
21
.github/workflows/compile-src.yml
vendored
@@ -2,19 +2,26 @@ name: SWG Source - Continuous Integration for src repo
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
types:
|
||||||
|
- opened
|
||||||
workflow_dispatch:
|
- sychronize
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-src:
|
compile-src:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: cekisswg/swg-vm3.01-i386:latest
|
container: cekisswg/swg-vm3.01-i386:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run ANT Build
|
- name: Clone repository
|
||||||
run: |
|
run: |
|
||||||
cd /home/swg/swg-main
|
cd /home/swg/swg-main
|
||||||
git clone https://github.com/SWG-Source/src.git
|
git clone --depth 1 --branch ${{ github.event.pull_request.base.ref }} ${{ github.repository }} pull-request
|
||||||
cd src
|
|
||||||
|
- name: Checkout pull request branch
|
||||||
|
run: git -C pull-request checkout ${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
|
- name: Run ANT Build
|
||||||
|
run: |
|
||||||
|
cd /home/swg/swg-main/src
|
||||||
ant build_src
|
ant build_src
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user