Skip to content

fix: use correct -nightly suffix in SDK download URL #3

fix: use correct -nightly suffix in SDK download URL

fix: use correct -nightly suffix in SDK download URL #3

Workflow file for this run

name: CI
on:
push:
branches: [master, main, improve/*]
pull_request:
branches: [master, main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: "${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15, windows-2022]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set platform identifiers
id: platform
shell: bash
run: |
case "${{ runner.os }}" in
Linux) echo "os=ubuntu" >> "$GITHUB_OUTPUT"
echo "arch=x86_64" >> "$GITHUB_OUTPUT" ;;
macOS) echo "os=macos" >> "$GITHUB_OUTPUT"
echo "arch=arm64" >> "$GITHUB_OUTPUT" ;;
Windows) echo "os=windows" >> "$GITHUB_OUTPUT"
echo "arch=x86_64" >> "$GITHUB_OUTPUT" ;;
esac
- name: Download CovScript SDK
id: sdk
shell: bash
run: |
OS="${{ steps.platform.outputs.os }}"
ARCH="${{ steps.platform.outputs.arch }}"
URL="https://github.com/covscript/csbuild/releases/download/${OS}-schedule/covscript-${OS}-${ARCH}-nightly.7z"
curl -fsSL "$URL" -o sdk.7z
7z x sdk.7z -y
mv build covscript-home
CS_HOME="${{ github.workspace }}/covscript-home"
CS_HOME="${CS_HOME//\\//}"
echo "cs_home=${CS_HOME}" >> "$GITHUB_OUTPUT"
echo "=== SDK contents ==="
ls -la covscript-home/
- name: Configure
shell: bash
env:
CS_DEV_PATH: ${{ steps.sdk.outputs.cs_home }}/
run: cmake -S . -B cmake-build
- name: Build
shell: bash
run: cmake --build cmake-build