diff options
| author | ruki <[email protected]> | 2023-11-01 22:33:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-01 22:33:03 +0800 |
| commit | e89cbfaf5088e69980451a78f6e54d609c862e13 (patch) | |
| tree | 2b118671c179ec0d995172a962231093934388ca | |
| parent | 867565453df03c966ecb8fd07a71be47e3fdd7f3 (diff) | |
add macos arm64 ci
| -rw-r--r-- | .github/workflows/macos_arm64.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/macos_arm64.yml b/.github/workflows/macos_arm64.yml new file mode 100644 index 000000000..5d8bf3144 --- /dev/null +++ b/.github/workflows/macos_arm64.yml @@ -0,0 +1,61 @@ +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 |
