Skip to content

Fix import priority not being respected #514

Fix import priority not being respected

Fix import priority not being respected #514

Workflow file for this run

name: Test
on:
push:
branches: ['main', 'release-*']
paths-ignore: ['**/*.md', '**/*.yml', '!.github/workflows/test.yml']
pull_request:
paths-ignore: ['**/*.md', '**/*.yml', '!.github/workflows/test.yml']
concurrency:
cancel-in-progress: true
group: test-${{ github.event.pull_request.number || github.sha }}
jobs:
test:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: macos-11
platform: macos
generator: Ninja
- os: macos-12
platform: macos
generator: Ninja
- os: macos-13
platform: macos
generator: Ninja
- os: ubuntu-20.04
platform: linux
generator: Ninja
memcheck: memcheck
- os: ubuntu-22.04
platform: linux
generator: Ninja
memcheck: memcheck
- os: windows-2022
platform: windows
generator: Visual Studio 17 2022
steps:
- uses: actions/checkout@v3
- uses: thelang-io/setup-the@v1
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install ninja-build valgrind
- if: runner.os == 'macOS'
run: brew install ninja
- if: runner.os != 'Windows'
run: uname -a
- if: runner.os == 'macOS'
run: the run scripts/pre-process-codegen --arch=x86_64 # todo remove after 0.14
- if: runner.os != 'macOS'
run: the run scripts/pre-process-codegen
- run: curl -fsSL https://cdn.thelang.io/deps.tar.gz -o deps.tar.gz
- run: tar -xzf deps.tar.gz the/native/${{ matrix.config.platform }}
- if: runner.os == 'Linux'
run: echo "DEPS_DIR=$PWD/the/native/${{ matrix.config.platform }}" >> $GITHUB_ENV
- if: runner.os == 'macOS'
run: echo "DEPS_DIR=$PWD/the/native/${{ matrix.config.platform }}/x86_64" >> $GITHUB_ENV
- if: runner.os == 'Windows'
run: echo "DEPS_DIR=$PWD/the/native/${{ matrix.config.platform }}" | Out-File -FilePath $env:GITHUB_ENV -Append
- if: matrix.config.memcheck != 'memcheck'
run: cmake . -B ./build -G "${{ matrix.config.generator }}" -D BUILD_TESTS=ON
- if: matrix.config.memcheck == 'memcheck'
run: cmake . -B ./build -G "${{ matrix.config.generator }}" -D BUILD_TESTS=ON -D TEST_CODEGEN_MEMCHECK=ON
- run: cmake --build build
- run: ctest --output-on-failure --test-dir build