From 1a734a00d6629a882e3f6b9304db45a9b62277b9 Mon Sep 17 00:00:00 2001 From: spaceface Date: Sun, 22 May 2022 19:19:04 +0200 Subject: [PATCH] ci: run on all branches on forks (#14498) --- .github/workflows/ci.yml | 11 ++++++++++- .github/workflows/ci_bootstrapping_works.yml | 3 ++- .github/workflows/ci_cross.yml | 4 +++- .github/workflows/ci_sanitized.yml | 7 ++++++- .github/workflows/ci_v_benchmark.yml | 2 +- .github/workflows/containers_ci.yml | 3 ++- .github/workflows/gen_vc.yml | 4 +++- .github/workflows/gfx_ci.yml | 2 +- .github/workflows/other_ci.yml | 6 +++++- .github/workflows/paths_ci.yml | 4 +++- .github/workflows/sdl_ci.yml | 2 +- .github/workflows/toml_ci.yml | 2 +- .github/workflows/v_apps_and_modules_compile.yml | 2 +- .github/workflows/vab_ci.yml | 2 +- .github/workflows/vinix-kernel.yml | 4 +++- .github/workflows/websockets.yml | 2 +- 16 files changed, 44 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6875009b5..1d36c80e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,6 @@ name: Code CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -16,6 +15,7 @@ concurrency: jobs: ubuntu-tcc: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -95,6 +95,7 @@ jobs: ubuntu-tcc-boehm-gc: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -151,6 +152,7 @@ jobs: macos: 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 env: VFLAGS: -cc clang @@ -240,6 +242,7 @@ jobs: ubuntu: 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 steps: - uses: actions/checkout@v2 @@ -339,6 +342,7 @@ jobs: ubuntu-clang: 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 env: VFLAGS: -cc clang @@ -429,6 +433,7 @@ jobs: windows-gcc: 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 env: VFLAGS: -cc gcc @@ -491,6 +496,7 @@ jobs: windows-msvc: 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 env: VFLAGS: -cc msvc @@ -538,6 +544,7 @@ jobs: windows-tcc: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -632,6 +639,7 @@ jobs: # ubuntu-autofree-selfcompile: # 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 # env: # VFLAGS: -cc gcc @@ -645,6 +653,7 @@ jobs: # ubuntu-musl: # 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 # env: # VFLAGS: -cc musl-gcc diff --git a/.github/workflows/ci_bootstrapping_works.yml b/.github/workflows/ci_bootstrapping_works.yml index 252a307d38..39dec25b2d 100644 --- a/.github/workflows/ci_bootstrapping_works.yml +++ b/.github/workflows/ci_bootstrapping_works.yml @@ -2,7 +2,6 @@ name: Bootstraping works on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: ubuntu: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -50,6 +50,7 @@ jobs: macos: 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 env: VFLAGS: -cc clang diff --git a/.github/workflows/ci_cross.yml b/.github/workflows/ci_cross.yml index dffa5fb25b..6e9a36c94c 100644 --- a/.github/workflows/ci_cross.yml +++ b/.github/workflows/ci_cross.yml @@ -2,7 +2,6 @@ name: Cross CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -13,6 +12,7 @@ jobs: macos-cross: 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 env: VFLAGS: -cc clang @@ -49,6 +49,7 @@ jobs: linux-cross: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -102,6 +103,7 @@ jobs: windows-cross: 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 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/ci_sanitized.yml b/.github/workflows/ci_sanitized.yml index 5994ff0281..7b616c53e4 100644 --- a/.github/workflows/ci_sanitized.yml +++ b/.github/workflows/ci_sanitized.yml @@ -13,7 +13,6 @@ name: Sanitized CI on: push: - branches: [master] paths: - '!**' - 'cmd/tools/vtest*' @@ -75,6 +74,7 @@ concurrency: jobs: tests-sanitize-undefined-clang: 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 env: VFLAGS: -cc clang @@ -102,6 +102,7 @@ jobs: tests-sanitize-undefined-gcc: 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 env: VFLAGS: -cc gcc @@ -128,6 +129,7 @@ jobs: tests-sanitize-address-clang: 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 env: VFLAGS: -cc clang @@ -159,6 +161,7 @@ jobs: tests-sanitize-address-msvc: 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 env: VFLAGS: -cc msvc @@ -190,6 +193,7 @@ jobs: tests-sanitize-address-gcc: 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 env: VFLAGS: -cc gcc @@ -221,6 +225,7 @@ jobs: tests-sanitize-memory-clang: 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 env: VFLAGS: -cc clang diff --git a/.github/workflows/ci_v_benchmark.yml b/.github/workflows/ci_v_benchmark.yml index 2ea14e27da..d8dd1218d8 100644 --- a/.github/workflows/ci_v_benchmark.yml +++ b/.github/workflows/ci_v_benchmark.yml @@ -2,7 +2,6 @@ name: vlang benchmarks on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -13,6 +12,7 @@ jobs: run: name: Run runs-on: ubuntu-latest + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/containers_ci.yml b/.github/workflows/containers_ci.yml index 46d27eb07f..b132e03ac9 100644 --- a/.github/workflows/containers_ci.yml +++ b/.github/workflows/containers_ci.yml @@ -2,7 +2,6 @@ name: Containers CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -17,6 +16,7 @@ jobs: alpine-docker-musl-gcc: 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 container: # Alpine docker pre-built container @@ -51,6 +51,7 @@ jobs: ubuntu-docker-musl: 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 container: image: thevlang/vlang:ubuntu-build diff --git a/.github/workflows/gen_vc.yml b/.github/workflows/gen_vc.yml index 6a0270364c..ca1b32fdf8 100644 --- a/.github/workflows/gen_vc.yml +++ b/.github/workflows/gen_vc.yml @@ -2,13 +2,15 @@ name: VC gen on: push: - branches: [master] + branches: + - master paths-ignore: - "**.md" jobs: build-vc: runs-on: ubuntu-latest + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' env: VREPO: github.com/vlang/vc.git steps: diff --git a/.github/workflows/gfx_ci.yml b/.github/workflows/gfx_ci.yml index 1a0dc5e1f8..0cc50f65e6 100644 --- a/.github/workflows/gfx_ci.yml +++ b/.github/workflows/gfx_ci.yml @@ -2,7 +2,6 @@ name: Graphics CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: gg-regressions: 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 env: VFLAGS: -cc tcc diff --git a/.github/workflows/other_ci.yml b/.github/workflows/other_ci.yml index 27534c8a1f..5b8f11ac5a 100644 --- a/.github/workflows/other_ci.yml +++ b/.github/workflows/other_ci.yml @@ -2,7 +2,6 @@ name: Other CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -16,6 +15,7 @@ concurrency: jobs: no-gpl-by-accident: 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 steps: - uses: actions/checkout@v2 @@ -25,6 +25,7 @@ jobs: code-formatting: 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 env: VFLAGS: -cc gcc @@ -41,6 +42,7 @@ jobs: performance-regressions: 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 env: VFLAGS: -cc gcc @@ -65,6 +67,7 @@ jobs: misc-tooling: 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 env: VFLAGS: -cc tcc -no-retry-compilation @@ -113,6 +116,7 @@ jobs: parser-silent: 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 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/paths_ci.yml b/.github/workflows/paths_ci.yml index c410d3fb7c..edad7b763c 100644 --- a/.github/workflows/paths_ci.yml +++ b/.github/workflows/paths_ci.yml @@ -2,7 +2,6 @@ name: Path Testing CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -17,6 +16,7 @@ jobs: space-paths-linux: 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 env: MY_V_PATH: '你好 my $path, @с интервали' @@ -42,6 +42,7 @@ jobs: space-paths-macos: 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 env: MY_V_PATH: '你好 my $path, @с интервали' @@ -70,6 +71,7 @@ jobs: space-paths-windows: 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 env: MY_V_PATH: 'path with some $punctuation, and some spaces' diff --git a/.github/workflows/sdl_ci.yml b/.github/workflows/sdl_ci.yml index 09533cedb8..657f6e855b 100644 --- a/.github/workflows/sdl_ci.yml +++ b/.github/workflows/sdl_ci.yml @@ -2,7 +2,6 @@ name: sdl CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: v-compiles-sdl-examples: 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 env: VFLAGS: -cc tcc diff --git a/.github/workflows/toml_ci.yml b/.github/workflows/toml_ci.yml index 460bff1777..bf91ab57e1 100644 --- a/.github/workflows/toml_ci.yml +++ b/.github/workflows/toml_ci.yml @@ -2,7 +2,6 @@ name: toml CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: toml-module-pass-external-test-suites: 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 env: TOML_BS_TESTS_PATH: vlib/toml/tests/testdata/burntsushi/toml-test diff --git a/.github/workflows/v_apps_and_modules_compile.yml b/.github/workflows/v_apps_and_modules_compile.yml index a3b764f066..f3af7f32ab 100644 --- a/.github/workflows/v_apps_and_modules_compile.yml +++ b/.github/workflows/v_apps_and_modules_compile.yml @@ -2,7 +2,6 @@ name: V Apps and Modules on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -16,6 +15,7 @@ concurrency: jobs: v-apps-compile: 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 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/vab_ci.yml b/.github/workflows/vab_ci.yml index d4481b6e00..1a3ae3782d 100644 --- a/.github/workflows/vab_ci.yml +++ b/.github/workflows/vab_ci.yml @@ -2,7 +2,6 @@ name: vab CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: vab-compiles-v-examples: 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 env: VAB_FLAGS: --api 30 --build-tools 29.0.0 -v 3 diff --git a/.github/workflows/vinix-kernel.yml b/.github/workflows/vinix-kernel.yml index 148065f5ae..e328d57be0 100644 --- a/.github/workflows/vinix-kernel.yml +++ b/.github/workflows/vinix-kernel.yml @@ -5,13 +5,15 @@ on: paths-ignore: - "**.md" push: - branches: [master] + branches: + - master paths-ignore: - "**.md" jobs: vinix-build: runs-on: ubuntu-20.04 + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/websockets.yml b/.github/workflows/websockets.yml index efc86d10ac..30c4400b18 100644 --- a/.github/workflows/websockets.yml +++ b/.github/workflows/websockets.yml @@ -2,7 +2,6 @@ name: Websockets CI on: push: - branches: [master] paths-ignore: - "**.md" pull_request: @@ -12,6 +11,7 @@ on: jobs: websocket_tests: 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 env: VFLAGS: -cc tcc -no-retry-compilation