v / .github / workflows / compile_discordv.sh
25 lines · 20 sloc · 799 bytes · c80a8a8afdcac9ff4118615e38baa84bb71d263b
Raw
1#!/usr/bin/env bash
2
3set -e
4
5function show() {
6 printf "\u001b[35m$1\u001b[0m\n"
7}
8
9## NOTE: this step is disabled in v_apps_and_modules_compile_ci.yml via `${{ false && ... }}`.
10## Reason: discord.v uses x.json2.raw_decode which was deprecated-as-error in V on 2025-10-10.
11## The upstream repo (vcv88/discord.v) has not been updated since Dec 2024.
12## Re-enable both the yml step and this script once vcv88/discord.v#21 is resolved.
13## Track: https://github.com/vlang/v/issues/26853
14
15rm -rf discord/
16
17show "Clone https://github.com/vcv88/discord.v"
18v retry -- git clone --filter=blob:none --quiet https://github.com/vcv88/discord.v discord/
19cd discord/
20show "Checkout last known good commit"
21git checkout ce9ff457fce92d5bb15df2974440cd8292457ee0
22show "Execute Tests"
23v test .
24cd ..
25rm -rf discord/
26