Skip to content

Commit

Permalink
Create build-arm64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Dec 20, 2023
1 parent c0e0307 commit 24ce62d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/.github/workflows/build-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build-arm64

permissions:
contents: write

on: [push, pull_request]

jobs:
build:
# Skip building pull requests from the same repository.
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: windows-2022
steps:

- name: Setup llvm-msvc
uses: backengineering/setup-llvm-msvc@v2

- name: Checkout
uses: actions/checkout@v2

- name: Build
run: |
cmake -Bbuild -TLLVM-MSVC_v143 -AARM64 -TLLVM-MSVC_v143
cmake --build build --config Release
- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: |
build/Release
build/lib/Release
- name: Compress artifacts
uses: vimtor/action-zip@26a249fb00d43ca98dad77a4b3838025fc226aa1 # v1.1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: |
build/Release
build/lib/Release
dest: ${{ github.event.repository.name }}-${{ github.sha }}.zip

- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }}
files: ${{ github.event.repository.name }}-${{ github.sha }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 24ce62d

Please sign in to comment.