From 7c9274b96d7238af4c3e0298da9e19d570dbc37f Mon Sep 17 00:00:00 2001 From: yibo <7483137+xyb994@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:06:29 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0745d26..b0da518 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,11 +10,19 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - run: | - echo hello - wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg - echo "deb [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 update && sudo apt install vagrant - vagrant --version + - name: checkout + uses: actions/checkout@v4 + + - name: install vagrant and virtualbox + run: | + wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg + echo "deb [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 update && sudo apt install vagrant + sudo apt install virtualbox + + - name: print vagrant and virtualbox version + run: | + vagrant --version + vboxmanage --version