Skip to content

Commit

Permalink
Maximize build space and install buildstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tytan652 committed Feb 12, 2024
1 parent 7cf33a3 commit a3ceac3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/actions/setup-buildstream-job/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Setup BuildStream job
description: Maximize build space and install BuildStream
runs:
using: composite
steps:
- uses: easimon/maximize-build-space@v10
with:
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true

- name: Install BuildStream
run: |
mkdir ~/.local/bin
wget https://gitlab.com/BuildGrid/buildbox/buildbox-integration/-/releases/1.1.0/downloads/buildbox-x86_64-linux-gnu.tgz
tar -xvzf buildbox-x86_64-linux-gnu.tgz -C ~/.local/bin
rm -rf buildbox-x86_64-linux-gnu.tgz
sudo apt-get install bubblewrap fuse3 git lzip patch python3
sudo apt-get install g++ python3-dev python3-pip
sudo apt-get install python3-{arpy,dulwich,requests,tomli}
pip3 install --user BuildStream==2.1.0
- name: Write BuildStream config
run: |
mkdir -p ~/.config
cat >> ~/.config/buildstream2.conf << EOF
sourcedir: ${GITHUB_WORKSPACE}/.bst/sources
cachedir: ${GITHUB_WORKSPACE}/.bst
logdir: ${GITHUB_WORKSPACE}/.bst/logs
EOF
17 changes: 13 additions & 4 deletions .github/workflows/bst-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ name: BuildStream Build Test
jobs:
buildstream:
name: Build
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images/bst2:36a24f5f2843fdb51aef130ef1ddfc99b5205e62
options: --privileged
runs-on: ubuntu-22.04

steps:
- name: Setup BuildStream job
uses: ./.github/actions/setup-builstream-job

- uses: actions/checkout@v4

- name: Write BuildStream config
run: |
mkdir -p ~/.config
cat >> ~/.config/buildstream2.conf << EOF
sourcedir: ${GITHUB_WORKSPACE}/.bst/sources
cachedir: ${GITHUB_WORKSPACE}/.bst
logdir: ${GITHUB_WORKSPACE}/.bst/logs
EOF
- name: Build Image
working-directory: ./buildstream
run: |
Expand Down

0 comments on commit a3ceac3

Please sign in to comment.