Skip to content

Commit 64ad7c7

Browse files
authored
ci: add a build_on_ubuntu_25_ci.yml script, for testing bootstrapping with GCC 14.2.0 (#25109)
1 parent 697cfa7 commit 64ad7c7

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI Ubuntu 25 GCC 14.2
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths-ignore:
7+
- '**.md'
8+
- '**.yml'
9+
- '!**/build_on_ubuntu_25_ci.yml'
10+
- 'cmd/tools/**'
11+
- '!cmd/tools/builders/**.v'
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
15+
- '**.yml'
16+
- '!**/build_on_ubuntu_25_ci.yml'
17+
- 'cmd/tools/**'
18+
- '!cmd/tools/builders/**.v'
19+
20+
jobs:
21+
ubuntu-25-gcc-14-2-build:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 30
24+
steps:
25+
- uses: actions/checkout@v5
26+
- name: Build and test in Ubuntu 25.04 with GCC 14.2
27+
run: |
28+
set -o xtrace
29+
echo "$PWD"
30+
whoami
31+
touch outside_docker.txt
32+
git log -n4
33+
echo "running docker ..."
34+
docker run --rm \
35+
--mount type=bind,source=/home/runner/work/v/v,destination=/src \
36+
-w /src ubuntu:25.04 bash -c '
37+
set -o xtrace
38+
echo "running inside docker"
39+
whoami
40+
cp -r /src ~/vproject; cd ~/vproject
41+
touch inside_docker.txt
42+
ls -la
43+
git log -n4
44+
apt update -y -qq
45+
apt install -y -qq git build-essential make
46+
git config --global --add safe.directory /src/vc
47+
git config --global --add safe.directory /src/thirdparty/tcc
48+
make
49+
./v symlink
50+
v run examples/hello_world.v
51+
v run examples/primes.v
52+
'

0 commit comments

Comments
 (0)