mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-11 16:37:42 -04:00
workflows: build: Install git before checkout
If git is not available, the checkout action checks out code using the REST API, which only includes the source. Building the Python module depends on having git version information.
This commit is contained in:
parent
f7c3ce5159
commit
f5dc8f9978
1 changed files with 16 additions and 0 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
|
@ -43,11 +43,27 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ "alpine", "archlinux", "fedora", "ubuntu" ]
|
||||
include:
|
||||
- install_git_cmd: apk add git
|
||||
os: alpine
|
||||
- install_git_cmd: pacman -Sy --noconfirm git
|
||||
os: archlinux
|
||||
- install_git_cmd: dnf --assumeyes install git
|
||||
os: fedora
|
||||
- install_git_cmd: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get --assume-yes install git
|
||||
os: ubuntu
|
||||
|
||||
container:
|
||||
image: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
# https://github.com/actions/checkout/issues/335
|
||||
- name: Install git
|
||||
run: ${{ matrix.install_git_cmd }}
|
||||
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue