From fc4c242442510fb97c3cfbf04d7582ebbc3bb0ed Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 24 Apr 2024 15:51:43 -0700 Subject: Fix macos CI and clang warnings. (#4019) * Fix macos CI. * Fix. * Fix. * Fix. * Fix clang warnings. * Fix more warnings. --- .github/github_test.sh | 4 ++++ .github/workflows/macos.yml | 6 +++--- .github/workflows/release-macos.yml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/github_test.sh b/.github/github_test.sh index ec6586114..5e75296fb 100644 --- a/.github/github_test.sh +++ b/.github/github_test.sh @@ -18,6 +18,10 @@ if [ "${ARCHITECTURE}" == "x86_64" ]; then ARCHITECTURE="x64" fi +if [ "${ARCHITECTURE}" == "arm64" ]; then + ARCHITECTURE="aarch64" +fi + # CONFIGURATION=release or debug if [ "${CC}" == "gcc" ] && [ "${CONFIGURATION}" == "release" ] && [ "${ARCHITECTURE}" == "x64" ] then diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 30a3fe003..7bb5b9651 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -17,8 +17,8 @@ jobs: matrix: configuration: ['release'] # 'debug' compiler: ['clang'] - platform: ['x64'] - targetPlatform: ['x64'] + platform: ['aarch64'] + targetPlatform: ['aarch64'] steps: - uses: actions/checkout@v3 with: @@ -64,7 +64,7 @@ jobs: path: | ${{ steps.package.outputs.SLANG_BINARY_ARCHIVE }} - name: test - if: ${{ matrix.targetPlatform != 'aarch64' }} + if: ${{ matrix.targetPlatform != 'x64' }} run: CONFIGURATION=${{matrix.configuration}} CC=${{matrix.compiler}} diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index bd3751e81..6bae8773a 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -14,7 +14,7 @@ jobs: matrix: configuration: ['release'] # 'debug' compiler: ['clang'] - platform: ['x64'] + platform: ['aarch64'] targetPlatform: ['x64', 'aarch64'] steps: - name: Checkout code -- cgit v1.2.3