add macos arm64 ci #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS (Arm64) | |
on: | |
pull_request: | |
push: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: macos-latest-xlarge | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-Arm64 | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# WyriHaximus/github-action-get-previous-tag@master need it | |
fetch-depth: 0 | |
submodules: true | |
- name: Prepare local xmake | |
run: cp -rf . ../xmake-source | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: local#../xmake-source | |
- name: Installation | |
run: | | |
brew install dmd | |
brew install dub | |
- name: Tests | |
run: | | |
uname -a | |
xmake lua -v -D tests/run.lua | |
xrepo --version | |
- name: Artifact | |
run: | | |
brew install gnu-tar | |
gem install --no-document fpm | |
scripts/archive-all | |
scripts/makeself/build-runfile.sh | |
- uses: actions/upload-artifact@v2 | |
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 |