From 23f4c6114c2b790405a9cefef1a7979655de44d4 Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 28 Mar 2023 16:03:15 +0200 Subject: [PATCH] Switch to BuildJet runners (#817) * Update deps * Use BuildJet runners to speed up arm64 --- .github/workflows/build-docker.yml | 34 ++++++++++++++++++++---------- nitter.nimble | 10 ++++----- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 81d547a..c0c105e 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -8,36 +8,48 @@ on: - master jobs: - build-docker: - runs-on: ubuntu-latest + build-docker-amd64: + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - with: - platforms: all - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: latest - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push AMD64 Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile platforms: linux/amd64 push: true tags: zedeus/nitter:latest,zedeus/nitter:${{ github.sha }} + build-docker-arm64: + runs-on: buildjet-2vcpu-ubuntu-2204-arm + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + with: + version: latest + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push ARM64 Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile.arm64 diff --git a/nitter.nimble b/nitter.nimble index fdc1f9f..f9aa72a 100644 --- a/nitter.nimble +++ b/nitter.nimble @@ -12,17 +12,17 @@ bin = @["nitter"] requires "nim >= 1.4.8" requires "jester#baca3f" -requires "karax#0af2c85" +requires "karax#9ee695b" requires "sass#7dfdd03" -requires "nimcrypto#b41129f" +requires "nimcrypto#4014ef9" requires "markdown#158efe3" requires "packedjson#9e6fbb6" requires "supersnappy#6c94198" requires "redpool#8b7c1db" requires "https://github.com/zedeus/redis#d0a0e6f" -requires "zippy#123cd59" -requires "flatty#9f885d7" -requires "jsony#d0e69bd" +requires "zippy#ca5989a" +requires "flatty#e668085" +requires "jsony#ea811be" # Tasks