update dependencies, add arm64 build #199
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| tags: | |
| - ena-* | |
| name: Rebuild for Electron | |
| jobs: | |
| rebuild-docker: | |
| name: Rebuild docker | |
| strategy: | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| container: ubuntu:22.04 | |
| steps: | |
| - name: Print Tag Ref | |
| run: echo ${{ github.ref }} | |
| - name: Install Dependencies for Ubuntu | |
| run: apt update && apt install -y software-properties-common git wget build-essential clang python3 libkrb5-dev libc++-dev zlib1g-dev libssl-dev | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| with: | |
| node-version: 22 | |
| architecture: ${{ matrix.arch }} | |
| - run: git config --global --add safe.directory /__w/electron-npg-automator/electron-npg-automator | |
| - run: npm install | |
| - run: node ci/build.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true | |
| - run: node ci/deploy.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true | |
| rebuild-windows: | |
| name: Rebuild Windows | |
| strategy: | |
| matrix: | |
| arch: [x64, arm64] | |
| fail-fast: false | |
| runs-on: windows-latest | |
| steps: | |
| - name: Print Tag Ref | |
| run: echo ${{ github.ref }} | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| with: | |
| node-version: 22 | |
| architecture: ${{ matrix.arch }} | |
| - name: Use Python 3.11 # node-gyp < 10 breaks with 3.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - run: npm install | |
| - run: node ci/build.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true | |
| TARGET_ARCH: ${{ matrix.arch }} | |
| - run: node ci/deploy.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true | |
| TARGET_ARCH: ${{ matrix.arch }} | |
| rebuild-macos: | |
| name: Rebuild macOS | |
| strategy: | |
| matrix: | |
| arch: [x64, arm64] | |
| fail-fast: false | |
| runs-on: ${{ matrix.arch == 'x64' && 'macos-15-intel' || 'macos-15' }} | |
| steps: | |
| - name: Print Tag Ref | |
| run: echo ${{ github.ref }} | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| with: | |
| node-version: 22 | |
| architecture: ${{ matrix.arch }} | |
| - name: Use Python 3.11 # node-gyp < 10 breaks with 3.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - run: npm install | |
| - run: node ci/build.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true | |
| - run: node ci/deploy.js | |
| env: | |
| electron_npg_automator_gh_token: ${{ secrets.electron_npg_automator_gh_token }} | |
| node_pre_gyp_bucket: ${{ secrets.node_pre_gyp_bucket }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.node_pre_gyp_accessKeyId }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.node_pre_gyp_secretAccessKey }} | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| electron_npg_automator_module: nodegit/nodegit | |
| electron_npg_automator_use_git_clone: true |