Skip to content

chore: update build.yml #8

chore: update build.yml

chore: update build.yml #8

Workflow file for this run

name: Build
on:
push:
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: BugSplat-Git/my-ubuntu-crasher
path: my-ubuntu-crasher
- name: Set PROJECT_DIR environment variable
run: echo "PROJECT_DIR=${{ github.workspace }}/my-ubuntu-crasher" >> $GITHUB_ENV
- name: Run script
working-directory: ${{ env.PROJECT_DIR }}
run: |
#!/bin/bash
cd scripts
source exports.sh
echo $OUT_DIR
echo $PROJECT_DIR
echo $CRASHPAD_DIR
echo $MODULE_NAME
mkdir -p $OUT_DIR
bash compile.sh
bash handler.sh
bash attachment.sh
ls $PROJECT_DIR/out
# TODO BG try and remove this when node-dump-syms goes to 10.
# I think this is needed because node-pre-gyp is not a dev dependency in 9.2.2.
- name: Install node-dump-syms
if: runner.os == 'Linux'
run: |
npm i -g @mapbox/node-pre-gyp
npm i -g node-dump-syms
- name: Upload Symbols
uses: BugSplat-Git/symbol-upload@d9ec6410f7230e35997a79ad8690bbf111cc6fcb
with:
clientId: "${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}"
clientSecret: "${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }}"
database: "${{ secrets.BUGSPLAT_DATABASE }}"
application: "my-ubuntu-crasher"
version: "1.0.0"
files: "myUbuntuCrasher"
directory: "${{ env.PROJECT_DIR }}/out"
dumpSyms: true
node-version: "22"