Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github/workflows: Don't install git #66

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .github/workflows/build_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,14 @@ jobs:

steps:
- name: Install tools/deps
run: yum -y install git gcc make jansson-devel libcurl-devel
run: yum -y install gcc make jansson-devel libcurl-devel

- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
run: CFLAGS=-Werror make GIT_VERSION=\\\"v0.0.0\\\" V=1

# Debian 11 / glibc 2.31 / gcc 10.2
debian_11:
Expand All @@ -70,16 +68,14 @@ jobs:
- name: Install deps
run: |
apt-get -y update
apt-get -y install git gcc make libjansson-dev libcurl4-openssl-dev
apt-get -y install gcc make libjansson-dev libcurl4-openssl-dev

- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
run: CFLAGS=-Werror make GIT_VERSION=\\\"v0.0.0\\\" V=1

# Alpine Linux with musl libc and GCC
alpine:
Expand All @@ -90,16 +86,14 @@ jobs:

steps:
- name: Install tools/deps
run: apk add build-base linux-headers git jansson-dev curl-dev
run: apk add build-base linux-headers jansson-dev curl-dev

- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: make
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make V=1
run: CFLAGS=-Werror make GIT_VERSION=\\\"v0.0.0\\\" V=1

# Fedora 34 / glibc 2.33 / gcc 11.2 / clang 12.0
# Fedora 35 / glibc 2.34 / gcc 11.2 / clang 13.0
Expand All @@ -117,13 +111,11 @@ jobs:

steps:
- name: Install tools/deps
run: dnf -y install git ${{ matrix.compiler }} make jansson-devel libcurl-devel
run: dnf -y install ${{ matrix.compiler }} make jansson-devel libcurl-devel

- uses: actions/checkout@v2
with:
fetch-depth: "0"

- name: make CC=${{ matrix.compiler }}
run: |
git config --global --add safe.directory /__w/libmtdac/libmtdac
CFLAGS=-Werror make CC=${{ matrix.compiler }} V=1
run: CFLAGS=-Werror make CC=${{ matrix.compiler }} GIT_VERSION=\\\"v0.0.0\\\" V=1
Loading