From 1cbbd6c740407b3e117faf0127866f7d450cbc7e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 3 Apr 2024 01:03:49 -0700 Subject: [PATCH] feat: generate binaries for MacOS Arm --- .github/workflows/CI.yml | 1 + dev/scripts/debug_remove.js | 17 ----------------- package.json | 5 ----- 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 dev/scripts/debug_remove.js diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d9019802..d5f4881e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -92,6 +92,7 @@ jobs: os: - windows-2022 - ubuntu-22.04 + - macos-13 - macos-12 node: - 20 diff --git a/dev/scripts/debug_remove.js b/dev/scripts/debug_remove.js deleted file mode 100644 index 8218663d..00000000 --- a/dev/scripts/debug_remove.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-disable import/no-extraneous-dependencies */ -const { minify } = require("terser") -const { readFileSync, writeFileSync } = require("fs") -const { join, dirname } = require("path") - -async function main() { - console.log("Disabling debug messages inside @actions/core") - const file = join(dirname(__dirname), "dist", "setup-cpp.js") - const { code, map } = await minify(readFileSync(file, "utf8"), { sourceMap: true, ...require("../.terserrc.js") }) - - writeFileSync(file, code) - writeFileSync(`${file}.map`, map) -} - -main().catch(function(err) { - throw err -}) diff --git a/package.json b/package.json index 90e08019..5091cb12 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "src", "packages", "dev/docker", - "dev/docker/__tests__", "README.md", "LICENSE.txt", "LICENSE.dependencies.txt", @@ -47,10 +46,6 @@ "lint.tsc": "tsc --noEmit", "pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs", "prepublishOnly": "rm ./dist/tsconfig.tsbuildinfo", - "start.docker": "docker run -t setup-cpp .", - "start.docker.arch": "docker run -t setup-cpp:arch .", - "start.docker.fedora": "docker run -t setup-cpp:fedora .", - "start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .", "test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.dprint lint.tsc", "test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/", "test.lint.dprint": "dprint check",