chore(deps): update mcr.microsoft.com/vscode/devcontainers/rust docker digest to 9904ba2 #764
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" | |
- "develop" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
container: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
strategy: | |
fail-fast: true | |
matrix: | |
dockerfile: ["Containerfile.codespaces", "Containerfile.gitpod"] | |
arch: ["linux/amd64", "linux/arm64"] | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install qemu dependency | |
run: | | |
set -e -x shl | |
set -o pipefail | |
sudo rm -rf /usr/share/dotnet &\ | |
sudo rm -rf /opt/ghc &\ | |
sudo rm -rf /usr/lib/jvm &\ | |
sudo rm -rf /opt/az &\ | |
sudo rm -rf /usr/lib/google-cloud-sdk &\ | |
sudo rm -rf /usr/lib/firefox &\ | |
sudo rm -rf /opt/google/chrome &\ | |
sudo rm -rf /opt/microsoft/powershell &\ | |
sudo rm -rf /opt/hostedtoolcache &\ | |
sudo rm -rf /usr/local/lib/android &\ | |
sudo rm -rf /usr/share/az_* &\ | |
sudo rm -rf /usr/share/php* &\ | |
sudo rm -rf /usr/share/mysql* &\ | |
sudo rm -rf /usr/lib/firefox-addons &\ | |
sudo rm -rf /usr/lib/erlang &\ | |
sudo rm -rf /usr/lib/valgrind &\ | |
sudo rm -rf /opt/mssql-tools &\ | |
sudo rm -rf /usr/share/swift &\ | |
sudo rm -rf /usr/share/miniconda &\ | |
sudo rm -rf "/usr/local/share/boost" &\ | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &\ | |
sudo apt-get update &\ | |
wait | |
ls -a /usr/share | |
ls -a /opt/ | |
ls -a /usr/lib/ | |
cd /usr/share && du -sh * | |
cd /opt && du -sh * | |
cd /usr/lib && du -sh * | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build | |
run: docker buildx build --platform ${{ matrix.arch }} -f ${{ matrix.dockerfile }} --load . | |
#- name: Buildah Action | |
# uses: redhat-actions/buildah-build@v2 | |
# with: | |
# containerfiles: | | |
# ${{ matrix.dockerfile }} | |
# platforms: ${{ matrix.arch }} | |
# image: ci |