Skip to content

Commit

Permalink
ci: work around download-artifact bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Aug 8, 2024
1 parent 07c3e4a commit 7024bf6
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions .github/workflows/native-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,23 @@ jobs:
export PATH=$RUNNER_TOOL_CACHE/go/${GO_VERSION}/${{ matrix.goarch }}/bin:$PATH
./ci/scripts/go_build.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
# XXX: GitHub broke upload/download-artifact. To avoid symlinks being
# converted into weird files, tar the files ourselves first.
# https://github.com/apache/arrow-adbc/issues/2061
# https://github.com/actions/download-artifact/issues/346

- name: tar artifacts
shell: bash -l {0}
run: |
cd
tar czf ~/local.tgz local
- uses: actions/upload-artifact@v4
with:
name: driver-manager-${{ matrix.os }}
retention-days: 3
path: |
~/local
~/local.tgz
# ------------------------------------------------------------
# C/C++ (builds and tests)
Expand Down Expand Up @@ -355,7 +366,13 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: driver-manager-${{ matrix.os }}
path: ~/local
path: "~"

- name: untar artifacts
shell: bash -l {0}
run: |
cd
tar xvf ~/local.tgz
- name: Build GLib Driver Manager
shell: bash -l {0}
Expand Down Expand Up @@ -477,7 +494,13 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: driver-manager-${{ matrix.os }}
path: ~/local
path: "~"

- name: untar artifacts
shell: bash -l {0}
run: |
cd
tar xvf ~/local.tgz
- name: Go Build
shell: bash -l {0}
Expand Down Expand Up @@ -561,7 +584,13 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: driver-manager-${{ matrix.os }}
path: ~/local
path: "~"

- name: untar artifacts
shell: bash -l {0}
run: |
cd
tar xvf ~/local.tgz
- name: Build
shell: bash -l {0}
Expand Down Expand Up @@ -668,10 +697,17 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo sysctl vm.mmap_rnd_bits=28
- uses: actions/download-artifact@v4
with:
name: driver-manager-${{ matrix.os }}
path: ~/local
path: "~"

- name: untar artifacts
shell: bash -l {0}
run: |
cd
tar xvf ~/local.tgz
- name: Build Python
shell: bash -l {0}
Expand Down

0 comments on commit 7024bf6

Please sign in to comment.