summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-17 00:44:17 +0800
committerruki <[email protected]>2020-06-16 22:25:46 +0800
commita10a03ca4a550c92a99afd6724bc538787e244c1 (patch)
treec8af240c1d1c4b79618e96069c2ef12aed03eb65
parent465486928c527813d31c3ac197ad53e27fe5a6f3 (diff)
fix linux ci
-rw-r--r--.github/workflows/linux.yml22
-rw-r--r--.github/workflows/macos.yml2
-rw-r--r--.github/workflows/windows.yml1
3 files changed, 16 insertions, 9 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index a70d519f8..329cbb7a9 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -22,10 +22,12 @@ jobs:
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
+
# tests
- name: tests
run: |
xmake lua -v -D tests/run.lua
+
# build artifacts
- name: artifact
run: |
@@ -38,14 +40,16 @@ jobs:
with:
name: xmake-latest.amd64.deb
path: xmake_latest_amd64.deb
+
# publish release
- name: publish
- if: github.event.action == 'published'
- uses: actions/[email protected]
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ github.event.release.upload_url }}
- asset_path: xmake_latest_amd64.deb
- asset_name: xmake-${GITHUB_REF##*/}.amd64.deb
- asset_content_type: application/zip
+ if: github.event.action == 'published'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: xmake_latest_amd64.deb
+ asset_name: xmake-${GITHUB_REF##*/}.amd64.deb
+ asset_content_type: application/zip
+
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index f63dc70dd..9c843d774 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -22,10 +22,12 @@ jobs:
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
+
# tests
- name: tests
run: |
xmake lua -v -D tests/run.lua
+
# build artifacts
- name: artifact
run: |
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index c796f25d7..6489356f3 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -23,6 +23,7 @@ jobs:
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
+
# tests
- name: tests
run: |