Fixed BGFX error while building shaders for windows #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
- devel | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Cache env files | |
uses: actions/cache@v3 | |
with: | |
key: env-files | |
path: | | |
${{ github.workspace }}/env | |
${{ github.workspace }}/data | |
- name: Setup build env | |
run: .\setup.bat | |
- name: Build for Windows | |
run: ./pack.sh win -p windows | |
shell: bash | |
- name: Build for Android | |
run: ./pack.sh win -p android | |
shell: bash | |
- name: Build for iOS | |
run: .\build.bat -p ios | |
- name: Upload Windows pack | |
uses: actions/upload-artifact@v3 | |
with: | |
name: newb-x-windows | |
path: ./build/windows/temp | |
- name: Upload Android pack | |
uses: actions/upload-artifact@v3 | |
with: | |
name: newb-x-android | |
path: ./build/android/temp | |
- name: Upload iOS materials | |
uses: actions/upload-artifact@v3 | |
with: | |
name: newb-x-ios-materials | |
path: ./build/ios | |