rename luarocks.module to lua.module, platform.linux.driver to platform.linux.module #2686
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: | |
strategy: | |
matrix: | |
os: [macos-14] | |
arch: [arm64] | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.arch }} | |
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 | |
- uses: little-core-labs/[email protected] | |
id: tagName | |
- name: Tests | |
run: | | |
xmake lua -v -D tests/run.lua | |
xrepo --version | |
- name: Artifact | |
run: | | |
cd core | |
xmake f --embed=y -c | |
xmake | |
mkdir ../artifacts | |
cp build/xmake ../artifacts/xmake-bundle | |
cd .. | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: xmake-bundle.macos.arm64 | |
path: artifacts/xmake-bundle | |
- name: Publish bundle binary | |
if: github.event.action == 'published' | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: artifacts/xmake-bundle | |
asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.macos.arm64 | |
asset_content_type: application/zip |