Browse Source

Workflows: Trigger all Build & Test on all branches & files

https://github.com/XTLS/Xray-core/pull/4192#issuecomment-2566960668
RPRX 9 months ago
parent
commit
dd4ba823f5
3 changed files with 7 additions and 36 deletions
  1. 6 12
      .github/workflows/release-win7.yml
  2. 1 12
      .github/workflows/release.yml
  3. 0 12
      .github/workflows/test.yml

+ 6 - 12
.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:

+ 1 - 12
.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

+ 0 - 12
.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: