Test data: download a tarball instead of cloning a repository

This commit is contained in:
Michele Locati 2023-10-06 14:42:34 +02:00
parent f219b1fffb
commit 672b23c80c
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B

View File

@ -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