Updated prebuilds #14
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: "[Linux] Build TF Examples" | |
on: | |
push: | |
jobs: | |
ubuntu: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout The-Forge | |
uses: actions/checkout@v3 | |
with: | |
path: The-Forge | |
- name: Checkout Custom-Middleware | |
uses: actions/checkout@v3 | |
with: | |
path: Custom-Middleware | |
repository: ${{ github.repository_owner }}/Custom-Middleware | |
ref: ${{ github.ref_name }} # Checkout the Custom-Middleware branch with the same name as the The-Forge branch we're building | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Setup Ubuntu 18.04 sources | |
if: matrix.os == 'ubuntu-18.04' | |
run: | | |
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | |
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.162-bionic.list https://packages.lunarg.com/vulkan/1.2.162/lunarg-vulkan-1.2.162-bionic.list | |
- name: Setup Ubuntu 20.04 sources | |
if: matrix.os == 'ubuntu-20.04' | |
run: | | |
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | |
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.162-focal.list https://packages.lunarg.com/vulkan/1.2.162/lunarg-vulkan-1.2.162-focal.list | |
- name: Install tools and dependencies | |
run: | | |
sudo apt update | |
sudo apt install build-essential codelite make pkg-config libx11-dev libxrandr-dev libgtk-3-dev vulkan-sdk libudev-dev | |
- name: Print disk space | |
shell: pwsh | |
run: Get-PSDrive | |
- name: Build | |
working-directory: The-Forge | |
run: | | |
echo "Current working directory:" | |
ls -la | |
echo "Running pybuild..." | |
python -u ./CI/PyBuild.py --preserveworkingdir --prebuild --printbuildoutput | |
- name: Print disk space | |
if: always() | |
shell: pwsh | |
run: Get-PSDrive |