summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-07-17 12:47:57 +0800
committerOpportunity <[email protected]>2020-07-17 12:47:57 +0800
commitbfa27afb47a791059688a8ce78922394405780b0 (patch)
tree3b7cad9b739b2f010402715f5a4686c70f81ce59
parentfda816fd096d24111187990bd13c2a0ec6649bdb (diff)
use checkout v2
-rw-r--r--.github/workflows/linux.yml9
-rw-r--r--.github/workflows/macos.yml9
-rw-r--r--.github/workflows/windows.yml5
3 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index d78fe289d..0475978a1 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -12,10 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: prepare local xmake
+ run: cp -rf . ../xmake-source
- uses: xmake-io/github-action-setup-xmake@v1
with:
- xmake-version: local#
+ xmake-version: local#../xmake-source
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
@@ -32,7 +36,6 @@ jobs:
run: |
sudo apt-get install -y ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
- git submodule update --init
scripts/makepkg deb
# upload artifacts
- uses: actions/upload-artifact@v2
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 03b14f3e1..3d4b410f4 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -12,10 +12,14 @@ jobs:
runs-on: macos-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: prepare local xmake
+ run: cp -rf . ../xmake-source
- uses: xmake-io/github-action-setup-xmake@v1
with:
- xmake-version: local#
+ xmake-version: local#../xmake-source
- uses: mihails-strasuns/[email protected]
with:
compiler: dmd-latest
@@ -32,7 +36,6 @@ jobs:
run: |
brew install gnu-tar
gem install --no-document fpm
- git submodule update --init
scripts/makepkg osxpkg
scripts/archive-all
scripts/makeself/build-runfile.sh
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index bd566e027..8741206d7 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -15,7 +15,9 @@ jobs:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
- uses: xmake-io/github-action-setup-xmake@v1
with:
# this is not supported, use dev branch instead
@@ -32,7 +34,6 @@ jobs:
run: |
# xmake
xmake show
- git submodule update --init
# nsis
Invoke-WebRequest "https://github.com/xmake-mirror/nsis/releases/download/v30b3/nsis-3.04.zip" -UseBasicParsing -OutFile ./nsis.zip
Invoke-WebRequest "https://github.com/xmake-mirror/nsis/releases/download/v30b3/nsis-3.04-strlen_8192.zip" -UseBasicParsing -OutFile ./nsis-longstr.zip