summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-21 22:52:55 +0800
committerruki <[email protected]>2021-01-21 22:52:55 +0800
commit1d7c01b04234e5099f3f79b08202ce2e05d8bc0c (patch)
tree215dc64af8fa491307a34b796101df064ceb1cff /.github
parentf28e55c29789c47386e46cdfdecb073019286d46 (diff)
improve ci for macos
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/macos.yml28
1 files changed, 15 insertions, 13 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index f594617bd..064d93a8a 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -15,31 +15,33 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- - name: prepare local xmake
+ - name: Prepare local xmake
run: cp -rf . ../xmake-source
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: local#../xmake-source
- - uses: dlang-community/setup-dlang@v1
- with:
- compiler: dmd-latest
- uses: little-core-labs/[email protected]
id: tagName
+ # installation
+ - name: Installation
+ run: |
+ brew install dmd
+
# tests
- - name: tests
+ - name: Tests
run: |
xmake lua -v -D tests/run.lua
xrepo --version
# build artifacts
- - name: artifact
+ - name: Artifact
run: |
brew install gnu-tar
gem install --no-document fpm
- scripts/makepkg osxpkg
+ scripts/makepkg osxpkg
scripts/archive-all
- scripts/makeself/build-runfile.sh
+ scripts/makeself/build-runfile.sh
# upload artifacts
- uses: actions/upload-artifact@v2
with:
@@ -63,7 +65,7 @@ jobs:
path: artifacts/xmake.zip
# publish release
- - name: publish
+ - name: Publish package
if: github.event.action == 'published'
uses: actions/[email protected]
env:
@@ -74,7 +76,7 @@ jobs:
asset_name: xmake-${{ steps.tagName.outputs.tag }}.macosx.pkg
asset_content_type: application/zip
- - name: publish
+ - name: Publish gz runfile
if: github.event.action == 'published'
uses: actions/[email protected]
env:
@@ -85,7 +87,7 @@ jobs:
asset_name: xmake-${{ steps.tagName.outputs.tag }}.gz.run
asset_content_type: application/zip
- - name: publish
+ - name: Publish xz runfile
if: github.event.action == 'published'
uses: actions/[email protected]
env:
@@ -96,7 +98,7 @@ jobs:
asset_name: xmake-${{ steps.tagName.outputs.tag }}.xz.run
asset_content_type: application/zip
- - name: publish
+ - name: Publish gz archive
if: github.event.action == 'published'
uses: actions/[email protected]
env:
@@ -107,7 +109,7 @@ jobs:
asset_name: xmake-${{ steps.tagName.outputs.tag }}.tar.gz
asset_content_type: application/zip
- - name: publish
+ - name: Publish zip archive
if: github.event.action == 'published'
uses: actions/[email protected]
env: