analyzer: Proper implementation of type casts #396
Workflow file for this run
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: Cross Compile | |
on: | |
push: | |
branches: ['main', 'release-*'] | |
paths-ignore: ['**/*.md', '**/*.yml', 'packages/**/*', '!.github/workflows/cross-compile.yml'] | |
pull_request: | |
paths-ignore: ['**/*.md', '**/*.yml', 'packages/**/*', '!.github/workflows/cross-compile.yml'] | |
concurrency: | |
cancel-in-progress: true | |
group: cross-compile-${{ github.event.pull_request.number || github.sha }} | |
jobs: | |
cross-compile: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- os: ubuntu-20.04 | |
platform: macos | |
- os: ubuntu-22.04 | |
platform: macos | |
- os: ubuntu-20.04 | |
platform: linux | |
- os: ubuntu-22.04 | |
platform: linux | |
- os: ubuntu-20.04 | |
platform: windows | |
- os: ubuntu-22.04 | |
platform: windows | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get update | |
- run: sudo apt-get install mingw-w64 ninja-build | |
- run: curl -fsSL https://cdn.thelang.io/deps.tar.gz | sudo tar -C /usr/local -xz | |
- if: matrix.config.platform == 'macos' | |
run: echo "DEPS_DIR=/usr/local/the/cross-compile/${{ matrix.config.platform }}/x86_64" >> $GITHUB_ENV | |
- if: matrix.config.platform != 'macos' | |
run: echo "DEPS_DIR=/usr/local/the/cross-compile/${{ matrix.config.platform }}" >> $GITHUB_ENV | |
- run: echo "/usr/local/the/osxcross/bin" >> $GITHUB_PATH | |
- run: sudo sed -i 's/#define _WIN32_WINNT .*/#define _WIN32_WINNT 0x0A00/' /usr/share/mingw-w64/include/_mingw.h | |
- run: cmake . -B ./build -G Ninja -D BUILD_TESTS=ON -D TEST_CODEGEN_PLATFORM=${{ matrix.config.platform }} | |
- run: cmake --build build | |
- run: ctest --output-on-failure --test-dir build |