Skip to content

CI: use the forrest-runner/persist action #15

CI: use the forrest-runner/persist action

CI: use the forrest-runner/persist action #15

Workflow file for this run

name: Arch based machines
on:
push:
branches:
- main
workflow_dispatch:
jobs:
base:
name: Base
runs-on: [self-hosted, forrest, arch-base]
steps:
- name: Set up runner machine
run: |
sudo localectl set-locale en_US.UTF-8
sudo sed -i "s/#IgnorePkg =/IgnorePkg = btrfs-progs/" /etc/pacman.conf
sudo pacman --noconfirm --noprogressbar -Syuu
sudo pacman --noconfirm --noprogressbar -S git
- name: Persist the disk image
uses: forrest-runner/persist@main
with:
token: ${{ secrets.PERSISTENCE_TOKEN }}
rust:
name: Rust
needs: base
runs-on: [self-hosted, forrest, arch-rust]
steps:
- name: Set up runner machine
run: |
sudo localectl set-locale en_US.UTF-8
sudo pacman --noconfirm --noprogressbar -Syuu
sudo pacman --noconfirm --noprogressbar -S rustup
- name: Install rust nightly toolchain
run: rustup toolchain install nightly
- name: Install rust stable toolchain
run: rustup toolchain install stable
- name: Persist the disk image
uses: forrest-runner/persist@main
with:
token: ${{ secrets.PERSISTENCE_TOKEN }}