Skip to content

Commit

Permalink
fix(ci): force to install podman
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Nov 15, 2023
1 parent 4bfe7f8 commit 87ad54f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ jobs:
packages: write

steps:
- name: Install core packages
run: |
sudo apt-get install -y curl git jq wget
- name: Install dependencies
run: >
sudo apt-get update
&& sudo apt-get install -y curl git jq podman wget
&& mkdir -p /home/runner/.docker/
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json
- name: Install package - yq
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
nasm
s3fs
&& curl 'https://sh.rustup.rs' -sSf | sh -s -- -y
&& rustup default stable
- name: Disable clang linker
run: >
Expand All @@ -77,10 +78,10 @@ jobs:
&& find ./ -type f -name Cargo.toml -exec sed -i "s/^\( *\)\# *\(.*\# *include *( *$(uname -m) *)\)$/\1\2/g" {} +
- name: Build
run: cargo build --all --workspace --verbose
run: /home/runner/.cargo/bin/cargo build --all --workspace --verbose

- name: Run tests
run: cargo test --all --workspace --verbose
run: /home/runner/.cargo/bin/cargo test --all --workspace --verbose

build-and-push-image:
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down Expand Up @@ -201,6 +202,8 @@ jobs:
run: >
sudo apt-get update
&& sudo apt-get install -y buildah qemu-user-static podman
&& mkdir -p /home/runner/.docker/
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json
- name: Log in to ${{ env.REGISTRY }}
uses: redhat-actions/podman-login@v1
Expand Down

0 comments on commit 87ad54f

Please sign in to comment.