Improve Shift Ops (#83) #399
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: Build Android | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
MODE: release | |
TARGET_OS: android | |
TARGET_ARCH: ${{ matrix.arch }} | |
TARGET_CPUREV: ${{ matrix.cpurev }} | |
JOBS: 4 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2019,windows-2022,macos-13,macos-14] | |
arch: [x64,x86,arm64,arm] | |
cpurev: [default] | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Clang Version | |
- name: Clang Version | |
run: clang --version | |
# Build | |
- name: Build | |
run: make -j${{ env.JOBS }} | |
# Test | |
# Note: x64 and x86 require VT-x on Windows. | |
# But it is disabled on Github Hyper-V runners. | |
- name: Test | |
if: | | |
(matrix.os == 'windows-2019' && matrix.arch != 'x64' && matrix.arch != 'x86') || | |
(matrix.os == 'macos-13') | |
env: | |
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 10 | |
run: make test |