From 88259874a3bea1c38bce323e34509f45a4891e22 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Wed, 17 Jun 2026 20:54:23 -0500 Subject: [PATCH] Build toolchains --- .gitea/workflows/linux.yaml | 41 +++++++++++++++++++++++++++++++++++ .gitea/workflows/windows.yaml | 30 +++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 .gitea/workflows/linux.yaml create mode 100644 .gitea/workflows/windows.yaml diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml new file mode 100644 index 0000000..71e42b3 --- /dev/null +++ b/.gitea/workflows/linux.yaml @@ -0,0 +1,41 @@ +name: Build Global Containers +run-name: ${{ gitea.actor }} is building the global containers 🚀 +on: [push] + +env: + GITEA_DOMAIN: git.tesses.org + GITEA_REGISTRY_USER: tesses50 + +jobs: + build: + # The 'container' tag replaces the runner OS; the job runs INSIDE this image + strategy: + fail-fast: true + matrix: + include: + - imageName: linux-x64 + runs-on: fw13-ubuntu-latest + - imageName: linux-arm64 + runs-on: fw13-ubuntu-latest + - imageName: linux-riscv64 + runs-on: fw13-ubuntu-latest + build-and-push-linux-image: + runs-on: ${{ matrix.runs-on }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ${{ env.GITEA_DOMAIN }} + username: ${{ env.GITEA_REGISTRY_USER }} + password: ${{ secrets.PACKAGE_AND_BREW }} + - name: Publish ${{ matrix.imageName }} + uses: docker/build-push-action@v6 + with: + context: ./containers/${{ matrix.imageName }} + file: ./Dockerfile.linux + push: true + tags: ${{ env.GITEA_DOMAIN }}/tesses50/${{ matrix.imageName }}:latest diff --git a/.gitea/workflows/windows.yaml b/.gitea/workflows/windows.yaml new file mode 100644 index 0000000..67e3ca8 --- /dev/null +++ b/.gitea/workflows/windows.yaml @@ -0,0 +1,30 @@ +name: Build Global Containers +run-name: ${{ gitea.actor }} is building the global containers 🚀 +on: [push] + +env: + GITEA_DOMAIN: git.tesses.org + GITEA_REGISTRY_USER: tesses50 + RESULT_MINGW_IMAGE_NAME: tesses50/global-containers-mingw + +jobs: + build-and-push-mingw-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ${{ env.GITEA_DOMAIN }} + username: ${{ env.GITEA_REGISTRY_USER }} + password: ${{ secrets.PACKAGE_AND_BREW }} + - name: Publish mingw image + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile.mingw + push: true + tags: ${{ env.GITEA_DOMAIN }}/${{ env.RESULT_MINGW_IMAGE_NAME }}:latest \ No newline at end of file