CI: use the forrest-runner/persist action #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |