Make cr-sqlite work on stable rust. Replace submodule with git-subrepo #59
This file contains hidden or 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
| on: | |
| pull_request: | |
| name: "c-tests" | |
| jobs: | |
| build: | |
| name: Testing on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| - os: windows-2022 | |
| - os: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Load .env file | |
| uses: xom9ikk/dotenv@v2 | |
| with: | |
| path: ./ | |
| - name: Windows rust toolchain | |
| if: runner.os == 'Windows' | |
| run: | | |
| rm core/rs/integration_check/rust-toolchain.toml | |
| rustup component add rust-src --toolchain 1.93.0-x86_64-pc-windows-gnu | |
| rustup default 1.93.0-x86_64-pc-windows-gnu | |
| $rustcPath = rustup which rustc --toolchain 1.93.0-x86_64-pc-windows-gnu | |
| $toolchainPath = Split-Path (Split-Path $rustcPath) | |
| Write-Host "Toolchain path: $toolchainPath" | |
| Write-Host "Searching for gcc.exe..." | |
| Get-ChildItem -Path "$toolchainPath" -Recurse -Filter "gcc.exe" -ErrorAction SilentlyContinue | Select-Object -First 5 | ForEach-Object { Write-Host $_.FullName } | |
| $mingwGcc = "$toolchainPath/bin/gcc.exe" -replace '\\', '/' | |
| Write-Host "Setting CI_GCC to: $mingwGcc" | |
| if (Test-Path $mingwGcc.Replace('/', '\')) { | |
| Write-Host "gcc.exe found at: $mingwGcc" | |
| } else { | |
| Write-Host "WARNING: gcc.exe not found at: $mingwGcc" | |
| } | |
| echo "CI_GCC=$mingwGcc" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: Test | |
| run: | | |
| cd core | |
| make test |