Skip to content

Commit

Permalink
Merge pull request AlmaLinux#15 from yuravk/almalinux
Browse files Browse the repository at this point in the history
CI: use ubuntu-24.04 runner instead of ubuntu-latest
  • Loading branch information
andrewlukoshko authored Dec 10, 2024
2 parents 4254329 + 0b98881 commit 8bfc268
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/almalinux-compose-test-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
start-runner:
timeout-minutes: 10 # normally it only takes 1-2 minutes
name: Setup and start self-hosted EC2 runner
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
actions: write
steps:
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/almalinux-compose-test-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
jobs:
compose-test:
name: AlmaLinux ${{ matrix.variant }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -124,19 +124,22 @@ jobs:

- name: Install Vagrant
run: |
# Use Vagrant packages provided by Hashicorp as ubuntu-24.04 doesn't build ones
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get -y update
sudo apt-get -y install vagrant
sudo vagrant --version
sudo vagrant plugin install vagrant-reload
sudo vagrant plugin install vagrant-env
- name: Install the Vagrant libvirt Plugin
run: |
sudo cp /etc/apt/sources.list /etc/apt/sources.list."$(date +"%F")"
sudo sed -i -e '/^# deb-src.*universe$/s/# //g' /etc/apt/sources.list
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources."$(date +"%F")"
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get -y update
sudo apt-get -y install nfs-kernel-server
sudo systemctl enable --now nfs-server
sudo apt-get -y build-dep vagrant ruby-libvirt
sudo apt-get -y build-dep ruby-libvirt
sudo apt-get -y install ebtables dnsmasq-base
sudo apt-get -y install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
sudo vagrant plugin install vagrant-libvirt
Expand Down Expand Up @@ -197,7 +200,10 @@ jobs:
EOF
- name: Run vagrant up
run: sudo vagrant up --no-tty almalinux
run: |
# TODO to solve "undefined method `exists?'" error
sudo sed -i 's/exists?/exist?/g' /root/.vagrant.d/gems/3.3.6/gems/dotenv-0.11.1/lib/dotenv.rb
sudo vagrant up --no-tty almalinux
- name: Get system release
run: |
Expand All @@ -213,6 +219,10 @@ jobs:
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo='${enable_repo,,} devel' python3-pip beakerlib"
sudo vagrant ssh almalinux -c "sudo sh -c 'export PATH=$PATH:/usr/local/bin; pip install flexparser==0.3.1 tmt'"
;;
9)
sudo vagrant ssh almalinux -c "sudo dnf -y install epel-release"
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo=${enable_repo,,} tmt initscripts-service"
;;
*)
sudo vagrant ssh almalinux -c "sudo dnf -y install epel-release"
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo=${enable_repo,,} tmt"
Expand Down

0 comments on commit 8bfc268

Please sign in to comment.