Skip to content

Commit

Permalink
chore: update workflow for bebopc build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmd5 committed Dec 21, 2023
1 parent 57f2c68 commit 279d2b3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-bebopc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- "Core/**"
branches:
- master
- vnext
pull_request:
paths:
- "Compiler/**"
- "Core/**"
branches:
- master
- vnext
jobs:
build-compiler:
runs-on: ${{ matrix.os }}
Expand All @@ -31,11 +33,13 @@ jobs:
- os: ubuntu-22.04
IDENTIFIER: linux
ARTIFACT: bebopc
BUILD_WASI: true

env:
CONFIGURATION: Release
BUILD_ARTIFACT_X86_64: ./bin/compiler/Release/publish/${{matrix.IDENTIFIER}}-x64/${{matrix.ARTIFACT}}
BUILD_ARTIFACT_ARM64: ./bin/compiler/Release/publish/${{matrix.IDENTIFIER}}-arm64/${{matrix.ARTIFACT}}
BUILD_ARTIFACT_WASI: ./bin/compiler/Release/publish/wasi-wasm/AppBundle/${{matrix.ARTIFACT}}.wasm
BUILD_ZIP_ARTIFACT_X86_64: ./bin/compiler/Release/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-x64.zip
BUILD_ZIP_ARTIFACT_ARM64: ./bin/compiler/Release/publish/${{matrix.ARTIFACT}}-${{matrix.IDENTIFIER}}-arm64.zip

Expand All @@ -52,6 +56,10 @@ jobs:
sudo apt-get update
sudo apt-get install clang zlib1g-dev libkrb5-dev libtinfo5
- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Install WASI Dependencies
run: ./scripts/install-wasi.sh

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -66,6 +74,10 @@ jobs:
dotnet publish -c ${{env.CONFIGURATION}} -r ${{matrix.IDENTIFIER}}-arm64 -p:ReleaseVersion=${{ steps.dotenv.outputs.version }} -p:PublishTrimmed=false -p:PublishSingleFile=true --self-contained
working-directory: ./Compiler/

- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Build bebopc for WASI
run: ./scripts/build-wasi.sh

- if: matrix.os == 'macos-latest'
name: Zip macOS Binary
run: |
Expand Down Expand Up @@ -96,3 +108,10 @@ jobs:
with:
name: ${{matrix.IDENTIFIER}}-arm64
path: ${{env.BUILD_ZIP_ARTIFACT_ARM64}}

- if: matrix.os == 'ubuntu-22.04' && matrix.BUILD_WASI
name: Upload WASI Build
uses: actions/upload-artifact@v4
with:
name: wasm-wasi
path: ${{env.BUILD_ARTIFACT_WASI}}

0 comments on commit 279d2b3

Please sign in to comment.