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