Skip to content
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ jobs:
- name: Install the dependencies
run: opam install --deps-only --with-test --locked --lock-suffix win.locked cs_api_client
- name: Insert the version number
run: ./ci/subst.bash "${{ steps.build_version.outputs.value }}"
if: startsWith(github.ref, 'refs/tags/')
shell: bash
env:
SHELLOPTS: igncr
run: bash ci/subst.bash "${{ steps.build_version.outputs.value }}"
- name: Build the executable and run the tests
run: opam exec -- dune build @all @runtest
- name: Run --version
run: _build/install/default/bin/cs-api.exe --version
- name: Copy the artifacts to a directory (in powershell)
run: |
New-Item -ItemType Directory -ErrorAction SilentlyContinue build/cs-api-${{ steps.build_version.outputs.value }}-windows
Expand Down