Skip to content

Commit

Permalink
chore: add build action
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 committed Sep 12, 2024
1 parent be3f36a commit f0a35bf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
mkdir -p $OUT_DIR
bash compile.sh
bash handler.sh
bash attachment.sh
- name: Upload Symbols
uses: BugSplat-Git/symbol-upload@main
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: "**/*.sym"
directory: "${{ env.PROJECT_DIR }}/out"

0 comments on commit f0a35bf

Please sign in to comment.