From 75ea7907d61595a7b1622456e94bc29fd7a08f41 Mon Sep 17 00:00:00 2001 From: Vitalii Yulieff Date: Wed, 20 Sep 2023 17:15:39 +0400 Subject: [PATCH] wip --- .github/workflows/build.yml | 18 ++++++++----- .github/workflows/ci.yml | 52 ------------------------------------- 2 files changed, 12 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03b223f6..8d1f9e47 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,18 @@ jobs: build-windows: runs-on: windows-2022 steps: + - name: Set static paths test + run: | + Write-Host "The operating system on the runner is Windows: $env:RUNNER_OS." + Write-Host "CRYSTAL_LIBRARY_RPATH: $env:CRYSTAL_LIBRARY_RPATH" + Write-Host "CRYSTAL_LIBRARY_PATH: $env:CRYSTAL_LIBRARY_PATH" + + echo ("CRYSTAL_LIBRARY_RPATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64/;" + $env:CRYSTAL_LIBRARY_RPATH) >> $env:GITHUB_ENV + echo ("CRYSTAL_LIBRARY_PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64/;" + $env:CRYSTAL_LIBRARY_PATH) >> $env:GITHUB_ENV + + Write-Host "CRYSTAL_LIBRARY_RPATH: $env:CRYSTAL_LIBRARY_RPATH" + Write-Host "CRYSTAL_LIBRARY_PATH: $env:CRYSTAL_LIBRARY_PATH" + # If this step breaks, try inspecting MSVC directory and consider changing appropriate paths. # # ls 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\' @@ -29,12 +41,6 @@ jobs: & 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\lib.exe' /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64 cp sqlite3.lib 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64' - - name: Set static paths test - run: | - Write-Host "The operating system on the runner is Windows: $env:RUNNER_OS." - Write-Host "CRYSTAL_LIBRARY_RPATH: $env:CRYSTAL_LIBRARY_RPATH" - Write-Host "CRYSTAL_LIBRARY_PATH: $env:CRYSTAL_LIBRARY_PATH" - - name: Checkout code uses: actions/checkout@v3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ebac1ce..9b844720 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,55 +7,3 @@ on: branches: [ master ] jobs: - test: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v3 - - name: Install Crystal - uses: crystal-lang/install-crystal@v1 - with: - crystal: 1.9 - - name: Install dependencies - run: shards install - - name: Run tests - run: crystal spec --verbose --order random --error-on-warnings - - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Install Crystal - uses: crystal-lang/install-crystal@v1 - with: - crystal: 1.9 - - name: Install dependencies - run: shards install - - name: Run linter - run: bin/ameba - - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install Crystal - uses: crystal-lang/install-crystal@v1 - with: - crystal: 1.9 - - run: make build - - name: Install kcov - run: | - sudo apt-get update - sudo apt-get install kcov - - name: Generate coverage - run: bin/crkcov --kcov-args --exclude-pattern=/usr/include,/usr/lib,lib/,spec/ - - name: Report coverage - env: - COVERALLS_REPO_TOKEN: ${{ github.token }} - run: | - cd coverage - ../bin/coveralls report --measure --base-path src/coverage_reporter/