diff --git a/.github/actions/lfs-setup/action.yml b/.github/actions/lfs-setup/action.yml deleted file mode 100644 index 9d4b24bd..00000000 --- a/.github/actions/lfs-setup/action.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: "Set up LFS" -description: "Ensure git-lfs and tkinfra are installed and configured" -inputs: - pullLFSObjects: - type: boolean - description: also pull LFS objects - default: false - monoSshKey: - description: ssh key for cloning mono - type: string - -runs: - using: "composite" - steps: - - name: Install git lfs - run: sudo apt-get install git-lfs -y - shell: bash - - - name: tkinfra cache - id: tkinfra-cache - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - with: - key: tkinfra-${{ runner.os }}-${{ hashFiles('src/go/tkinfra/**') }} - path: /usr/local/bin/tkinfra - - - name: Set up Go - if: steps.tkinfra-cache.outputs.cache-hit != 'true' - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 - with: - go-version: '1.21' - cache: false - - - name: Clone mono - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - with: - repository: tkhq/mono - ssh-key: ${{ inputs.monoSshKey }} - submodules: false - lfs: false - sparse-checkout: | - src - path: mono - - - name: Build `tkinfra` - if: steps.tkinfra-cache.outputs.cache-hit != 'true' - shell: 'script -q -e -c "bash {0}"' - run: | - cd mono/src/go/tkinfra - go mod download - GOBIN=/usr/local/bin go install ./cmd/tkinfra - - - name: Configure `git-lfs` for `tkinfra` - shell: 'script -q -e -c "bash {0}"' - run: | - git config lfs.customtransfer.tks3.path tkinfra - git config lfs.customtransfer.tks3.args "lfs --default-credentials" - git config lfs.standalonetransferagent tks3 - - - name: Pull LFS artifacts - shell: 'script -q -e -c "bash {0}"' - run: | - git lfs pull diff --git a/upload-stagex-ghcr.sh b/upload-stagex-ghcr.sh deleted file mode 100755 index d74029e2..00000000 --- a/upload-stagex-ghcr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -# This is a script to pull stagex docker images used in `src/images/Containerfile` -# and push them to GHCR. In github actions we then pull these images from -# GHCR to avoid rate limiting from docker hub. - -IMAGES=(rust bash coreutils findutils grep musl libunwind openssl zlib ca-certificates binutils pkgconf git gen_initramfs eif_build llvm pcsc-lite file gcc linux-nitro) - -for image in "${IMAGES[@]}" -do - docker image pull stagex/${image} - docker image tag stagex/${image} ghcr.io/tkhq/stagex/${image} - docker image push ghcr.io/tkhq/stagex/${image} -done