fix: invalid path for options.save_path if not exists #36
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: Compile | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Compile (${{ matrix.sys }}) | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
include: | |
- { sys: mingw64, env: x86_64 } | |
- { sys: mingw32, env: i686 } | |
- { sys: ucrt64, env: ucrt-x86_64 } | |
- { sys: clang64, env: clang-x86_64 } | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
cache: true | |
msystem: ${{ matrix.sys }} | |
install: >- | |
mingw-w64-${{ matrix.env }}-toolchain | |
mingw-w64-${{ matrix.env }}-clang | |
mingw-w64-${{ matrix.env }}-make | |
make | |
- name: Add environment variables | |
run: | | |
echo "export PATH=/${{ matrix.sys }}/bin:$PATH" >> $GITHUB_ENV | |
echo "export CC=clang" >> $GITHUB_ENV | |
echo "export CXX=clang++" >> $GITHUB_ENV | |
- name: Compile source code | |
run: | | |
echo "::group::Clang++ version" | |
clang++ --version | |
echo "::endgroup::" | |
echo "::group::Compiling" | |
make | |
echo "::endgroup::" | |
- name: Export artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts-${{ matrix.env }} | |
path: | | |
./transf_server.exe | |
./transf_client.exe | |
if-no-files-found: warn | |
retention-days: 30 |