ci: run on all branches on forks (#14498)

spaceface 2022-05-22 19:19:04 +02:00 committed by Jef Roosens
parent 9326cb9d67
commit 1a734a00d6
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
16 changed files with 44 additions and 16 deletions

View File

@ -2,7 +2,6 @@ name: Code CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -16,6 +15,7 @@ concurrency:
jobs: jobs:
ubuntu-tcc: ubuntu-tcc:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -95,6 +95,7 @@ jobs:
ubuntu-tcc-boehm-gc: ubuntu-tcc-boehm-gc:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -151,6 +152,7 @@ jobs:
macos: macos:
runs-on: macOS-latest runs-on: macOS-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
@ -240,6 +242,7 @@ jobs:
ubuntu: ubuntu:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -339,6 +342,7 @@ jobs:
ubuntu-clang: ubuntu-clang:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
@ -429,6 +433,7 @@ jobs:
windows-gcc: windows-gcc:
runs-on: windows-2019 runs-on: windows-2019
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
@ -491,6 +496,7 @@ jobs:
windows-msvc: windows-msvc:
runs-on: windows-2019 runs-on: windows-2019
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc
@ -538,6 +544,7 @@ jobs:
windows-tcc: windows-tcc:
runs-on: windows-2019 runs-on: windows-2019
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -632,6 +639,7 @@ jobs:
# ubuntu-autofree-selfcompile: # ubuntu-autofree-selfcompile:
# runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
# if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
# timeout-minutes: 121 # timeout-minutes: 121
# env: # env:
# VFLAGS: -cc gcc # VFLAGS: -cc gcc
@ -645,6 +653,7 @@ jobs:
# ubuntu-musl: # ubuntu-musl:
# runs-on: ubuntu-20.04 # runs-on: ubuntu-20.04
# if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
# timeout-minutes: 121 # timeout-minutes: 121
# env: # env:
# VFLAGS: -cc musl-gcc # VFLAGS: -cc musl-gcc

View File

@ -2,7 +2,6 @@ name: Bootstraping works
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
ubuntu: ubuntu:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -50,6 +50,7 @@ jobs:
macos: macos:
runs-on: macos-11 runs-on: macos-11
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang

View File

@ -2,7 +2,6 @@ name: Cross CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -13,6 +12,7 @@ jobs:
macos-cross: macos-cross:
runs-on: macOS-latest runs-on: macOS-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 25 timeout-minutes: 25
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
@ -49,6 +49,7 @@ jobs:
linux-cross: linux-cross:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 25 timeout-minutes: 25
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -102,6 +103,7 @@ jobs:
windows-cross: windows-cross:
runs-on: windows-2019 runs-on: windows-2019
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -13,7 +13,6 @@ name: Sanitized CI
on: on:
push: push:
branches: [master]
paths: paths:
- '!**' - '!**'
- 'cmd/tools/vtest*' - 'cmd/tools/vtest*'
@ -75,6 +74,7 @@ concurrency:
jobs: jobs:
tests-sanitize-undefined-clang: tests-sanitize-undefined-clang:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
@ -102,6 +102,7 @@ jobs:
tests-sanitize-undefined-gcc: tests-sanitize-undefined-gcc:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
@ -128,6 +129,7 @@ jobs:
tests-sanitize-address-clang: tests-sanitize-address-clang:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
@ -159,6 +161,7 @@ jobs:
tests-sanitize-address-msvc: tests-sanitize-address-msvc:
runs-on: windows-2019 runs-on: windows-2019
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc
@ -190,6 +193,7 @@ jobs:
tests-sanitize-address-gcc: tests-sanitize-address-gcc:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
@ -221,6 +225,7 @@ jobs:
tests-sanitize-memory-clang: tests-sanitize-memory-clang:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 180 timeout-minutes: 180
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang

View File

@ -2,7 +2,6 @@ name: vlang benchmarks
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -13,6 +12,7 @@ jobs:
run: run:
name: Run name: Run
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2

View File

@ -2,7 +2,6 @@ name: Containers CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -17,6 +16,7 @@ jobs:
alpine-docker-musl-gcc: alpine-docker-musl-gcc:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
container: container:
# Alpine docker pre-built container # Alpine docker pre-built container
@ -51,6 +51,7 @@ jobs:
ubuntu-docker-musl: ubuntu-docker-musl:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
container: container:
image: thevlang/vlang:ubuntu-build image: thevlang/vlang:ubuntu-build

View File

@ -2,13 +2,15 @@ name: VC gen
on: on:
push: push:
branches: [master] branches:
- master
paths-ignore: paths-ignore:
- "**.md" - "**.md"
jobs: jobs:
build-vc: build-vc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
env: env:
VREPO: github.com/vlang/vc.git VREPO: github.com/vlang/vc.git
steps: steps:

View File

@ -2,7 +2,6 @@ name: Graphics CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
gg-regressions: gg-regressions:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 10 timeout-minutes: 10
env: env:
VFLAGS: -cc tcc VFLAGS: -cc tcc

View File

@ -2,7 +2,6 @@ name: Other CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -16,6 +15,7 @@ concurrency:
jobs: jobs:
no-gpl-by-accident: no-gpl-by-accident:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -25,6 +25,7 @@ jobs:
code-formatting: code-formatting:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 15 timeout-minutes: 15
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
@ -41,6 +42,7 @@ jobs:
performance-regressions: performance-regressions:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 15 timeout-minutes: 15
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
@ -65,6 +67,7 @@ jobs:
misc-tooling: misc-tooling:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
@ -113,6 +116,7 @@ jobs:
parser-silent: parser-silent:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -2,7 +2,6 @@ name: Path Testing CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -17,6 +16,7 @@ jobs:
space-paths-linux: space-paths-linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
MY_V_PATH: '你好 my $path, @с интервали' MY_V_PATH: '你好 my $path, @с интервали'
@ -42,6 +42,7 @@ jobs:
space-paths-macos: space-paths-macos:
runs-on: macOS-latest runs-on: macOS-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
MY_V_PATH: '你好 my $path, @с интервали' MY_V_PATH: '你好 my $path, @с интервали'
@ -70,6 +71,7 @@ jobs:
space-paths-windows: space-paths-windows:
runs-on: windows-2022 runs-on: windows-2022
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
MY_V_PATH: 'path with some $punctuation, and some spaces' MY_V_PATH: 'path with some $punctuation, and some spaces'

View File

@ -2,7 +2,6 @@ name: sdl CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
v-compiles-sdl-examples: v-compiles-sdl-examples:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
VFLAGS: -cc tcc VFLAGS: -cc tcc

View File

@ -2,7 +2,6 @@ name: toml CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
toml-module-pass-external-test-suites: toml-module-pass-external-test-suites:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
env: env:
TOML_BS_TESTS_PATH: vlib/toml/tests/testdata/burntsushi/toml-test TOML_BS_TESTS_PATH: vlib/toml/tests/testdata/burntsushi/toml-test

View File

@ -2,7 +2,6 @@ name: V Apps and Modules
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -16,6 +15,7 @@ concurrency:
jobs: jobs:
v-apps-compile: v-apps-compile:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -2,7 +2,6 @@ name: vab CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
vab-compiles-v-examples: vab-compiles-v-examples:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VAB_FLAGS: --api 30 --build-tools 29.0.0 -v 3 VAB_FLAGS: --api 30 --build-tools 29.0.0 -v 3

View File

@ -5,13 +5,15 @@ on:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
push: push:
branches: [master] branches:
- master
paths-ignore: paths-ignore:
- "**.md" - "**.md"
jobs: jobs:
vinix-build: vinix-build:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -2,7 +2,6 @@ name: Websockets CI
on: on:
push: push:
branches: [master]
paths-ignore: paths-ignore:
- "**.md" - "**.md"
pull_request: pull_request:
@ -12,6 +11,7 @@ on:
jobs: jobs:
websocket_tests: websocket_tests:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation