Create x86-minimal #100
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: Image build on event | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
if: "github.event_name == 'push' && !contains(github.event.head_commit.modified, 'last.releases')" | |
strategy: | |
fail-fast: false # Don't fail all if any of the jobs is failing | |
matrix: | |
TESTING: [release] | |
TARGET: [nvidia-agx] # <-- Add targets here! | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
root-reserve-mb: 512 | |
swap-size-mb: 10 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
overprovision-lvm: 'true' | |
- name: remove even more | |
run: | | |
sudo apt-get purge -y \ | |
'^llvm-.*' \ | |
'php.*' \ | |
'^mongodb-.*' \ | |
'^mysql-.*' \ | |
azure-cli \ | |
google-chrome-stable \ | |
firefox \ | |
powershell \ | |
microsoft-edge-stable \ | |
mono-devel \ | |
google-cloud-cli \ | |
dotnet-sdk-8.0 \ | |
dotnet-sdk-7.0 \ | |
temurin-21-jdk \ | |
dotnet-sdk-6.0 \ | |
temurin-17-jdk \ | |
temurin-11-jdk \ | |
gcc-13 \ | |
temurin-8-jdk \ | |
g++-13 \ | |
gfortran-13 \ | |
cpp-13 \ | |
openjdk-11-jre-headless | |
sudo df -h | |
sudo apt-get autoremove -y | |
sudo apt-get clean | |
- name: Setup env | |
run: | | |
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | awk '{printf "%.2f MB \t %s\n", $1/(1024), $2}' | |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV | |
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
### ONLY THIS RELEVANT FOR BUILDING ### | |
- uses: actions/checkout@v3 | |
- name: update | |
run: sudo apt-get update | |
- name: fix ci's | |
run: sudo apt-mark hold grub-efi-amd64-signed | |
- name: upgrade | |
run: sudo apt-get upgrade -y | |
- name: dep | |
run: sudo apt-get install -y unzip tree curl git qemu qemu-user-static binfmt-support | |
- name: debug | |
run: ls -a | |
- name: configure | |
run: sudo bash build.sh ${{ matrix.TARGET }} ${{ matrix.TESTING }} | |
- name: debug | |
run: tree | |