2022-02-18 11:31:01 +03:00
|
|
|
name: Containers CI
|
|
|
|
|
|
|
|
on:
|
2022-05-15 09:06:01 +03:00
|
|
|
push:
|
2022-05-20 18:27:35 +03:00
|
|
|
branches: [master]
|
2022-05-15 09:06:01 +03:00
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
2022-02-18 11:31:01 +03:00
|
|
|
|
|
|
|
concurrency:
|
2022-02-24 17:00:50 +03:00
|
|
|
group: build-containers-${{ github.event.pull_request.number || github.sha }}
|
2022-02-18 11:31:01 +03:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2022-05-12 23:29:37 +03:00
|
|
|
|
2022-02-18 11:31:01 +03:00
|
|
|
alpine-docker-musl-gcc:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
timeout-minutes: 121
|
|
|
|
container:
|
|
|
|
# Alpine docker pre-built container
|
|
|
|
image: thevlang/vlang:alpine-build
|
|
|
|
env:
|
|
|
|
V_CI_MUSL: 1
|
|
|
|
VFLAGS: -cc gcc
|
|
|
|
volumes:
|
|
|
|
- ${{github.workspace}}:/opt/vlang
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Show Environment
|
|
|
|
run: |
|
|
|
|
echo "PWD:"
|
|
|
|
pwd
|
|
|
|
echo "ENVIRONMENT:"
|
|
|
|
env
|
|
|
|
echo "C Compiler:"
|
|
|
|
gcc --version
|
|
|
|
|
|
|
|
- name: Build V
|
|
|
|
run: CC=gcc make
|
|
|
|
|
2022-05-17 13:14:08 +03:00
|
|
|
- name: All code is formatted
|
|
|
|
run: ./v test-cleancode
|
|
|
|
|
2022-02-18 11:31:01 +03:00
|
|
|
- name: Test V fixed tests
|
|
|
|
run: ./v test-self
|
|
|
|
|
|
|
|
ubuntu-docker-musl:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
timeout-minutes: 121
|
|
|
|
container:
|
|
|
|
image: thevlang/vlang:ubuntu-build
|
|
|
|
env:
|
|
|
|
V_CI_MUSL: 1
|
|
|
|
V_CI_UBUNTU_MUSL: 1
|
|
|
|
VFLAGS: -cc musl-gcc
|
|
|
|
volumes:
|
|
|
|
- ${{github.workspace}}:/opt/vlang
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build V
|
|
|
|
run: |
|
|
|
|
echo $VFLAGS && make -j4 && ./v -cg -o v cmd/v
|
|
|
|
- name: Verify `v test` works
|
|
|
|
run: |
|
|
|
|
echo $VFLAGS
|
|
|
|
./v cmd/tools/test_if_v_test_system_works.v
|
|
|
|
./cmd/tools/test_if_v_test_system_works
|
2022-05-17 13:14:08 +03:00
|
|
|
|
|
|
|
- name: All code is formatted
|
|
|
|
run: ./v test-cleancode
|
|
|
|
|
2022-02-18 11:31:01 +03:00
|
|
|
- name: Test V fixed tests
|
|
|
|
run: ./v test-self
|