From dd4ba823f50fbfee804ae0f01d3d90b949971a41 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Wed, 1 Jan 2025 11:51:32 +0000 Subject: [PATCH] Workflows: Trigger all Build & Test on all branches & files https://github.com/XTLS/Xray-core/pull/4192#issuecomment-2566960668 --- .github/workflows/release-win7.yml | 18 ++++++------------ .github/workflows/release.yml | 13 +------------ .github/workflows/test.yml | 12 ------------ 3 files changed, 7 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release-win7.yml b/.github/workflows/release-win7.yml index 18745397..ae1dd35b 100644 --- a/.github/workflows/release-win7.yml +++ b/.github/workflows/release-win7.yml @@ -1,24 +1,18 @@ name: Build and Release for Windows 7 +# NOTE: This Github Actions file depends on the Makefile. +# Building the correct package requires the correct binaries generated by the Makefile. To +# ensure the correct output, the Makefile must accept the appropriate input and compile the +# correct file with the correct name. If you need to modify this file, please ensure it won't +# disrupt the Makefile. + on: workflow_dispatch: release: types: [published] push: - branches: - - main - paths: - # - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/release-win7.yml" pull_request: types: [opened, synchronize, reopened] - paths: - # - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/release-win7.yml" jobs: prepare: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b706680..dc6fa6fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,20 +11,9 @@ on: release: types: [published] push: - branches: - - main - paths: - - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/release.yml" pull_request: types: [opened, synchronize, reopened] - paths: - - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/release.yml" + jobs: prepare: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da178740..9620829a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,20 +2,8 @@ name: Test on: push: - branches: - - main - paths: - - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/*.yml" pull_request: types: [opened, synchronize, reopened] - paths: - - "**/*.go" - - "go.mod" - - "go.sum" - - ".github/workflows/*.yml" jobs: test: