Browse Source

build: do not disable CircleCI config

Keeley Hammond 1 year ago
parent
commit
d2c390983b
3 changed files with 23 additions and 4 deletions
  1. 20 1
      .circleci/config.yml
  2. 0 2
      script/patches-mtime-cache.py
  3. 3 1
      script/release/ci-release-build.js

+ 20 - 1
.circleci/config.yml

@@ -49,9 +49,28 @@ jobs:
     docker:
       - image: cimg/node:16.14
     steps:
+      - checkout
+      - path-filtering/set-parameters:
+          base-revision: main
+          mapping: |
+            ^((?!docs/).)*$ run-build-mac true
+            ^((?!docs/).)*$ run-build-linux true
+            docs/.* run-docs-only true
+            ^((?!docs/).)*$ run-docs-only false
       - run:
           command: |
-            echo "Disabled workflows for this PR"
+            cd .circleci/config
+            yarn
+            export CIRCLECI_BINARY="$HOME/circleci"
+            curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | DESTDIR=$CIRCLECI_BINARY bash
+            node build.js
+          name: Pack config.yml
+      - run:
+          name: Set params
+          command: node .circleci/config/params.js
+      - continuation/continue:
+          configuration_path: .circleci/config-staging/built.yml
+          parameters: /tmp/pipeline-parameters.json
 
 # Initial setup workflow
 workflows:

+ 0 - 2
script/patches-mtime-cache.py

@@ -40,7 +40,6 @@ def generate_cache(patches_config):
                 "mtime": os.path.getmtime(file_path),
             }
 
-    print("Returning the mtime_cache")
     return mtime_cache
 
 
@@ -180,7 +179,6 @@ def main():
 
         set_mtimes(json.load(args.patches_config), args.mtime)
 
-    print("Done with patches-mtime-cache.py")
     return 0
 
 

+ 3 - 1
script/release/ci-release-build.js

@@ -23,10 +23,12 @@ const appVeyorJobs = {
 };
 
 const circleCIPublishWorkflows = [
-  'linux-publish'
+  'linux-publish',
+  'macos-publish'
 ];
 
 const circleCIPublishIndividualArches = {
+  'macos-publish': ['osx-x64', 'mas-x64', 'osx-arm64', 'mas-arm64'],
   'linux-publish': ['arm', 'arm64', 'x64']
 };