try gnu tar workaround for CI cache
https://github.com/actions/cache/issues/403#issuecomment-678348989
This commit is contained in:
parent
9a8e6d8bdf
commit
43f5db6480
19
.github/workflows/checks.yml
vendored
19
.github/workflows/checks.yml
vendored
@ -142,6 +142,9 @@ jobs:
|
|||||||
# https://stackoverflow.com/questions/59644349/msgmerge-on-macos-catalina
|
# https://stackoverflow.com/questions/59644349/msgmerge-on-macos-catalina
|
||||||
echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
|
echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
|
||||||
|
|
||||||
|
# gnu tar for cache issue
|
||||||
|
echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
|
||||||
|
|
||||||
- name: Configure Windows environment variables
|
- name: Configure Windows environment variables
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
@ -176,6 +179,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
|
- name: Set up brew ripgrep, pyaudio, gettext, etc
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
brew install portaudio protobuf gettext ripgrep make tar
|
||||||
|
|
||||||
# Disable it for macos because it pyenv cache is bugged (https://github.com/ankitects/anki/pull/563)
|
# Disable it for macos because it pyenv cache is bugged (https://github.com/ankitects/anki/pull/563)
|
||||||
- name: Cache pyenv
|
- name: Cache pyenv
|
||||||
if: matrix.os != 'macos-latest' && matrix.python == '3.7'
|
if: matrix.os != 'macos-latest' && matrix.python == '3.7'
|
||||||
@ -257,12 +266,6 @@ jobs:
|
|||||||
curl --fail -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
|
curl --fail -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
|
||||||
sudo dpkg -i ripgrep_11.0.2_amd64.deb
|
sudo dpkg -i ripgrep_11.0.2_amd64.deb
|
||||||
|
|
||||||
- name: Set up brew ripgrep, pyaudio, gettext
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
brew install portaudio protobuf gettext ripgrep make
|
|
||||||
|
|
||||||
- name: Set up python
|
- name: Set up python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
@ -345,7 +348,3 @@ jobs:
|
|||||||
# https://github.com/ankitects/anki/pull/535
|
# https://github.com/ankitects/anki/pull/535
|
||||||
perl scripts/rename -f "s@\+[\w\d]+-@-@g" dist/*
|
perl scripts/rename -f "s@\+[\w\d]+-@-@g" dist/*
|
||||||
python -m twine upload --non-interactive --skip-existing --verbose dist/*
|
python -m twine upload --non-interactive --skip-existing --verbose dist/*
|
||||||
|
|
||||||
- name: macOS CI workaround test
|
|
||||||
if: matrix.BUILD_TYPE == 'check' && matrix.os == 'macos-latest'
|
|
||||||
run: sync && sleep 10
|
|
||||||
|
Loading…
Reference in New Issue
Block a user