diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cac0c0e..5a299b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,12 @@ on: jobs: macOS: - runs-on: macos-12 - strategy: matrix: node-version: [18, 20] - platform: [macos-13, macos-13-xlarge] + platform: [macos-12, macos-13-xlarge] + + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/download-libzim.js b/download-libzim.js index d8efa19..ffa0528 100644 --- a/download-libzim.js +++ b/download-libzim.js @@ -8,9 +8,11 @@ const urlParser = require("url"); mkdirp.sync("./download"); +console.info(`os.type() is '%s' and os.arch() gives '%s'`, os.type(), os.arch()); const isMacOS = os.type() === "Darwin"; const isLinux = os.type() === "Linux"; const rawArch = os.arch(); + const isAvailableArch = rawArch === "x64" || rawArch === "arm" || rawArch === "arm64";