From c83fc448c8fc95c06fdae8e5c5ea435df111c5d2 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Tue, 17 Dec 2024 18:31:12 -0800 Subject: [PATCH] Migrate to self-host runner --- .github/actions/vagrant-setup/action.yml | 9 +-------- .github/workflows/distros.yml | 4 +--- .github/workflows/on-demand_ci.yml | 2 +- .github/workflows/scheduled_ci.yml | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/actions/vagrant-setup/action.yml b/.github/actions/vagrant-setup/action.yml index 186f82e..35b2b6c 100644 --- a/.github/actions/vagrant-setup/action.yml +++ b/.github/actions/vagrant-setup/action.yml @@ -30,15 +30,8 @@ runs: shell: bash run: | if [[ "$(VBoxManage --version)" == "6.1.28r147628" ]]; then - find . -type f -iname "Vagrantfile" -exec sed -i '.bak' 's|v.gui = .*|v.gui = true|g' {} \; - find . -type f -name "*.bak" -delete + find . -type f -name "Vagrantfile" -exec sed -i 's|v.gui = .*|v.gui = true|g' {} \; fi - - name: Replace shorten links - shell: bash - run: find . -type f -iname "*sh" -exec sed -i '.bak' 's|http://bit.ly/install_pkg|https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh|g' {} \; - - name: Install vagrant tool - shell: bash - run: brew install vagrant - name: Install Vagrant Reload plugin shell: bash run: vagrant plugin install vagrant-reload diff --git a/.github/workflows/distros.yml b/.github/workflows/distros.yml index dab3e3a..5e4a5c5 100644 --- a/.github/workflows/distros.yml +++ b/.github/workflows/distros.yml @@ -17,7 +17,7 @@ on: jobs: check-versions: - runs-on: macos-12 + runs-on: vm-self-hosted permissions: contents: write # for technote-space/create-pr-action to push code pull-requests: write # for technote-space/create-pr-action to create a PR @@ -27,8 +27,6 @@ jobs: with: path: ~/.vagrant.d/boxes key: ${{ runner.os }}-vagrant-${{ hashFiles('distros_supported.yml') }} - - name: Install vagrant tool - run: brew install vagrant - uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # refs/tags/v2.1.4 with: EXECUTE_COMMANDS: | diff --git a/.github/workflows/on-demand_ci.yml b/.github/workflows/on-demand_ci.yml index 5af9c36..885464e 100644 --- a/.github/workflows/on-demand_ci.yml +++ b/.github/workflows/on-demand_ci.yml @@ -69,7 +69,7 @@ jobs: run: ../shellspec/shellspec --profile --xtrace check-setup: name: Check setup script on different distros using libvirt and/or virtualbox providers - runs-on: macos-12 + runs-on: vm-self-hosted if: >- ( github.event_name == 'pull_request_review' && diff --git a/.github/workflows/scheduled_ci.yml b/.github/workflows/scheduled_ci.yml index 9319899..325bfa3 100644 --- a/.github/workflows/scheduled_ci.yml +++ b/.github/workflows/scheduled_ci.yml @@ -27,7 +27,7 @@ jobs: CREATE_QAT_VFS: true run: ./setup.sh check-vagrant: - runs-on: macos-12 + runs-on: vm-self-hosted strategy: fail-fast: false matrix: