CI: use builder image

This commit is contained in:
Xiretza 2025-02-15 14:36:17 +00:00
parent fb657f5d27
commit 90e1cf3f8e

View file

@ -12,7 +12,7 @@ jobs:
name: Check formatting and lints
runs-on: docker
container:
image: "archlinux:base-devel"
image: git.it-syndikat.org/it-syndikat/its-matrix-bot-build
strategy:
matrix:
toolchain:
@ -20,13 +20,9 @@ jobs:
#- beta
#- nightly
steps:
- name: Install dependencies
run: |
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm nodejs git rustup sqlite
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update nightly ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Set Rust toolchain
run: rustup default ${{ matrix.toolchain }}
- name: Restore cached build artifacts
uses: https://github.com/Swatinem/rust-cache@v2
- name: Check formatting
@ -37,7 +33,7 @@ jobs:
name: Build and test
runs-on: docker
container:
image: "archlinux:base-devel"
image: git.it-syndikat.org/it-syndikat/its-matrix-bot-build
strategy:
matrix:
toolchain:
@ -45,13 +41,9 @@ jobs:
#- beta
#- nightly
steps:
- name: Install dependencies
run: |
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm nodejs git rustup sqlite
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Set Rust toolchain
run: rustup default ${{ matrix.toolchain }}
- name: Restore cached build artifacts
uses: https://github.com/Swatinem/rust-cache@v2
- name: Build application
@ -68,12 +60,8 @@ jobs:
needs: [check, build_and_test]
runs-on: docker
container:
image: "archlinux:base-devel"
image: git.it-syndikat.org/it-syndikat/its-matrix-bot-build
steps:
- name: Install dependencies
run: |
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm nodejs openssh rsync
- uses: actions/download-artifact@v3
with:
name: artifacts