Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Sr 64 GitHub action coverage reporter crashing on windows #104

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
cd C:\ProgramData\chocolatey\lib\SQLite\tools
ls 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\'
& '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: Checkout code
uses: actions/checkout@v3
Expand All @@ -38,10 +37,16 @@ jobs:

- run: shards install --production

- run: crystal build src\cli.cr -o dist\coveralls --release --static --no-debug --progress
- run: |
- name: Set path and build
run: |
$env:CRYSTAL_LIBRARY_PATH = (crystal env CRYSTAL_LIBRARY_PATH) + ";C:\ProgramData\chocolatey\lib\SQLite\tools"
crystal build src\cli.cr -o dist\coveralls --release --static --no-debug --progress -Dpreview_win32_delay_load

- name: copy dll and zip
run: |
cd dist
tar -acf coveralls-windows.zip coveralls.exe
cp "C:\ProgramData\chocolatey\lib\SQLite\tools\sqlite3.dll" sqlite3.dll
tar -acf coveralls-windows.zip coveralls.exe sqlite3.dll

- name: Upload exe
uses: actions/upload-artifact@v3
Expand All @@ -50,6 +55,13 @@ jobs:
path: dist/coveralls.exe
if-no-files-found: error

- name: Upload sqlite3.dll
uses: actions/upload-artifact@v3
with:
name: sqlite3.dll
path: dist/sqlite3.dll
if-no-files-found: error

- name: Upload zip
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -122,6 +134,7 @@ jobs:
'coveralls-linux.tar.gz#coveralls-linux.tar.gz'
'coveralls-windows.exe#coveralls-windows.exe'
'coveralls-windows.zip#coveralls-windows.zip'
'sqlite3.dll#sqlite3.dll'
'coveralls-checksums.txt#coveralls-checksums.txt'
--generate-notes

Expand Down