From 672b23c80cb13346bbe5fa52f1ef947d1991f904 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 6 Oct 2023 14:42:34 +0200 Subject: [PATCH] Test data: download a tarball instead of cloning a repository --- .github/workflows/build.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a719ea3..4477a59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,7 @@ name: build on: [ push, pull_request ] +env: + TEST_DATA_URL: https://github.com/mdbtools/mdbtestdata/archive/refs/heads/master.tar.gz jobs: linux: runs-on: ubuntu-latest @@ -14,7 +16,10 @@ jobs: run: sudo apt install gettext - uses: actions/checkout@v2 - name: Fetch test data - run: git clone https://github.com/mdbtools/mdbtestdata.git test + run: | + rm -rf test + mkdir test + curl -sSLf "$TEST_DATA_URL" | tar xz --strip-components=1 -C test - name: Autoconf run: autoreconf -i -f - name: Configure @@ -52,7 +57,10 @@ jobs: run: brew install bison gawk automake - uses: actions/checkout@v2 - name: Fetch test data - run: git clone https://github.com/mdbtools/mdbtestdata.git test + run: | + rm -rf test + mkdir test + curl -sSLf "$TEST_DATA_URL" | tar xz --strip-components=1 -C test - name: Autoconf run: autoreconf -i -f - name: Configure @@ -94,7 +102,10 @@ jobs: run: echo /usr/local/opt/libiodbc/bin >> $GITHUB_PATH - uses: actions/checkout@v2 - name: Fetch test data - run: git clone https://github.com/mdbtools/mdbtestdata.git test + run: | + rm -rf test + mkdir test + curl -sSLf "$TEST_DATA_URL" | tar xz --strip-components=1 -C test - name: Autoconf run: autoreconf -i -f - name: Configure @@ -130,7 +141,10 @@ jobs: glib2-devel - uses: actions/checkout@v2 - name: Check out test data - run: git clone https://github.com/mdbtools/mdbtestdata.git test + run: | + rm -rf test + mkdir test + curl -sSLf "$TEST_DATA_URL" | tar xz --strip-components=1 -C test - name: Autoconf run: autoreconf -i -f - name: Configure