diff options
| author | ruki <[email protected]> | 2020-06-16 22:46:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-16 10:39:36 +0800 |
| commit | 0d8d98df820f46e2bcfb187105efbbe464cce056 (patch) | |
| tree | 262639957f81f5f45f635ef1558160a65c81d352 /.github/workflows/macos.yml | |
| parent | 6dbfda48d9aa8f84f39b0a16ddd18aa4860c3b50 (diff) | |
improve action ci
Diffstat (limited to '.github/workflows/macos.yml')
| -rw-r--r-- | .github/workflows/macos.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 000000000..77eec4c9d --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,58 @@ +name: macOS + +on: + pull_request: + push: + release: + types: published + +jobs: + build: + strategy: + matrix: + os: [macOS-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: sha@${{ github.sha }} + - 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: | + brew install gnu-tar + gem install --no-document fpm + git submodule update --init + scripts/makepkg osxpkg latest + scripts/archive-all + scripts/makeself/build-runfile.sh + # upload artifacts + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.macosx.pkg + path: xmake-latest.pkg + with: + name: xmake-latest.gz.run + path: artifacts/xmake.gz.run + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.xz.run + path: artifacts/xmake.xz.run + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.tar.gz + path: artifacts/xmake.tar.gz + - uses: actions/upload-artifact@v2 + with: + name: xmake-latest.zip + path: artifacts/xmake.zip + |
