-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install new crun version on debian/ubuntu
- Loading branch information
Showing
5 changed files
with
36 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Setup environment | ||
runs: | ||
using: "composite" | ||
steps: | ||
# See: https://github.com/actions/runner-images/issues/9425 | ||
- name: Patch crun | ||
shell: bash | ||
if: > | ||
startsWith(matrix.distro, 'debian') || | ||
startsWith(matrix.distro, 'ubuntu') | ||
run: | | ||
curl -Lo ./crun https://github.com/containers/crun/releases/download/1.14.4/crun-1.14.4-linux-amd64 | ||
sudo install crun /usr/bin/crun | ||
# This is necessary on GH Actions to allow running systemd in rootless containers | ||
# see: https://github.com/actions/virtual-environments/issues/3536 | ||
# see: https://github.com/ansible-community/molecule/discussions/3155 | ||
- name: Start systemd user service | ||
shell: bash | ||
run: | | ||
loginctl enable-linger $(whoami) | ||
sleep 1 | ||
- name: Install requirements | ||
shell: bash | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements.txt |
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
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
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
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