Skip to content

Commit

Permalink
arm64 test
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 5, 2024
1 parent ce5eb29 commit f34965e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build_win-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build latest (Win ARM64)
on: [push]

concurrency:
group: ${{ github.ref }}-winarm64
cancel-in-progress: true

jobs:
build-64:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
container:
image: dockcross/windows-arm64
steps:
- uses: actions/checkout@v4
- name: Compile ARM64 Windows builds
shell: bash
id: compile
env:
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
WIN64_FLAGS: "-mwindows -nostartfiles -Wl,-emain_real -DCC_NOMAIN"
run: |
sudo apt-get -y install gcc-mingw-w64-x86-64
LATEST_FLAG=-DCC_COMMIT_SHA=\"$(git rev-parse --short "$GITHUB_SHA")\"
cp misc/windows/CCicon_64.res src/CCicon_64.res
cd src
aarch64-w64-mingw32-clang *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-arm64-d3d9.exe $LATEST_FLAG -lwinmm -limagehlp
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile ARM64 bit Windows build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'


- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'src/cc-arm64-d3d9.exe'
DEST_NAME: 'ClassiCube-Arm64-Direct3D9.exe'

0 comments on commit f34965e

Please sign in to comment.