summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-05-24 00:25:13 +0800
committerOpportunity <[email protected]>2020-05-24 00:25:13 +0800
commit60da66a217851ec905e00a1b5d32821449559171 (patch)
tree31d6ccaea1107b1bf0d27f34425f3cdbcdf07d88
parenta3e290f38284634683b13af08605331ff9da62e2 (diff)
check pr
-rw-r--r--.github/workflows/main.yml30
1 files changed, 18 insertions, 12 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 79d85dbfb..9984ff30e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,6 +1,6 @@
name: build
-on: [push]
+on: [push, pull_request]
jobs:
build:
@@ -9,15 +9,21 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
-
+
steps:
- - uses: actions/checkout@v1
- - uses: xmake-io/github-action-setup-xmake@v1
- with:
- xmake-version: branch@dev
- - uses: mihails-strasuns/[email protected]
- with:
- compiler: dmd-latest
- - name: tests
- run: |
- xmake lua -v -D tests/run.lua
+ - uses: actions/checkout@v1
+ - uses: xmake-io/github-action-setup-xmake@v1
+ if: matrix.os != 'windows-latest' || github.event_name == 'push'
+ with:
+ xmake-version: sha@${{ github.sha }}
+ - uses: xmake-io/github-action-setup-xmake@v1
+ # this is not supported, use dev branch instead
+ if: matrix.os == 'windows-latest' && github.event_name == 'pull_request'
+ with:
+ xmake-version: branch@dev
+ - uses: mihails-strasuns/[email protected]
+ with:
+ compiler: dmd-latest
+ - name: tests
+ run: |
+ xmake lua -v -D tests/run.lua