Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed May 20, 2024
1 parent 5d560fe commit 49de1d1
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:

- name: Build
shell: pwsh
run: ./build.ps1 -p ios -a $env:BUILD_ARCH
run: ./build.ps1 -p ios -a $env:BUILD_ARCH -libs '${{ github.event.inputs.libs }}'

- name: Upload
uses: actions/upload-artifact@v4
Expand All @@ -166,7 +166,7 @@ jobs:
python-version: '3.10'
- name: Build
shell: pwsh
run: ./build.ps1 -p ios -a arm64 -sdk simulator
run: ./build.ps1 -p ios -a arm64 -sdk simulator -libs '${{ github.event.inputs.libs }}'
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:

- name: Build
shell: pwsh
run: ./build.ps1 -p tvos -a $env:BUILD_ARCH
run: ./build.ps1 -p tvos -a $env:BUILD_ARCH -libs '${{ github.event.inputs.libs }}'

- name: Upload
uses: actions/upload-artifact@v4
Expand All @@ -229,7 +229,7 @@ jobs:
python-version: '3.10'
- name: Build
shell: pwsh
run: ./build.ps1 -p tvos -a arm64 -sdk simulator
run: ./build.ps1 -p tvos -a arm64 -sdk simulator -libs '${{ github.event.inputs.libs }}'
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:

- name: Build
shell: pwsh
run: ./build.ps1 -p android -a $env:BUILD_ARCH
run: ./build.ps1 -p android -a $env:BUILD_ARCH -libs '${{ github.event.inputs.libs }}'

- name: Upload
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:

- name: Build
shell: pwsh
run: .\build.ps1 -p winrt -a $env:BUILD_ARCH
run: .\build.ps1 -p winrt -a $env:BUILD_ARCH -libs '${{ github.event.inputs.libs }}'

- name: Upload
uses: actions/upload-artifact@v4
Expand All @@ -340,33 +340,23 @@ jobs:
wasm:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Build
shell: pwsh
run: ./build.ps1 -p wasm -a '*' -libs 'openssl'

- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./${{ env.install_path }}/**
name: ${{ env.install_path }}
wasm64:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Run a job for each of the specified target architectures:
strategy:
matrix:
plat:
- wasm
- wasm64
env:
BUILD_PLAT: ${{ matrix.plat }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Build
shell: pwsh
run: ./build.ps1 -p wasm64 -a '*' -libs 'openssl'
run: if ('${{ github.event.inputs.libs }}' -eq ''){ ./build.ps1 -p $env:BUILD_PLAT -a '*' -libs 'openssl' } else { ./build.ps1 -p $env:BUILD_PLAT -a '*' -libs '${{ github.event.inputs.libs }}' }

- name: Upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 49de1d1

Please sign in to comment.