Skip to content

Build native doesn't cross-compile #28

Build native doesn't cross-compile

Build native doesn't cross-compile #28

Workflow file for this run

name: Build Native
on:
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'build native') }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build
run: |
yarn build
cd packages/cli
yarn build-native linux
- name: Publish appmap-linux-x64
uses: actions/upload-artifact@v4
with:
name: appmap-linux-x64
path: packages/cli/release/appmap-linux-x64
macos-x64:
runs-on: macos-12
if: ${{ contains(github.event.pull_request.labels.*.name, 'build native') }}
env:
PUPPETEER_SKIP_DOWNLOAD: 1
APPLE_IDENTITY_PRIVATE_KEY: ${{ secrets.APPLE_IDENTITY_PRIVATE_KEY }}
APPLE_IDENTITY_CERTIFICATE: ${{ secrets.APPLE_IDENTITY_CERTIFICATE }}
APPLE_CONNECT_KEY_B64: ${{ secrets.APPLE_CONNECT_KEY_B64 }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install deps
run: |
python3 -m pip install --break-system-packages setuptools
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "${HOME}/.cargo/env"
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build
run: |
yarn build
cd packages/cli
yarn build-native macos x64
"${GITHUB_WORKSPACE}/bin/presign"
"${GITHUB_WORKSPACE}/bin/sign" release/appmap-macos-x64
"${GITHUB_WORKSPACE}/bin/notarize" release/appmap-macos-x64
"${GITHUB_WORKSPACE}/bin/hash" release/appmap-macos-x64
- name: Publish appmap-macos-x64
uses: actions/upload-artifact@v4
with:
name: appmap-macos-x64
path: packages/cli/release/appmap-macos-x64
macos-arm:
runs-on: macos-14
if: ${{ contains(github.event.pull_request.labels.*.name, 'build native') }}
env:
PUPPETEER_SKIP_DOWNLOAD: 1
APPLE_IDENTITY_PRIVATE_KEY: ${{ secrets.APPLE_IDENTITY_PRIVATE_KEY }}
APPLE_IDENTITY_CERTIFICATE: ${{ secrets.APPLE_IDENTITY_CERTIFICATE }}
APPLE_CONNECT_KEY_B64: ${{ secrets.APPLE_CONNECT_KEY_B64 }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install deps
run: |
python3 -m pip install --break-system-packages setuptools
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "${HOME}/.cargo/env"
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build
run: |
yarn build
cd packages/cli
yarn build-native macos arm64
"${GITHUB_WORKSPACE}/bin/presign"
"${GITHUB_WORKSPACE}/bin/sign" release/appmap-macos-arm64
"${GITHUB_WORKSPACE}/bin/notarize" release/appmap-macos-arm64
"${GITHUB_WORKSPACE}/bin/hash" release/appmap-macos-arm64
- name: Publish appmap-macos-arm64
uses: actions/upload-artifact@v4
with:
name: appmap-macos-arm64
path: packages/cli/release/appmap-macos-arm64
windows:
runs-on: windows-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'build native') }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build
run: |
yarn build
cd packages/cli
yarn build-native windows x64
- name: Publish appmap-windows-x64
uses: actions/upload-artifact@v4
with:
name: appmap-windows-x64
path: packages/cli/release/appmap-windows-x64.exe