Skip to content

Commit

Permalink
fix: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Jul 17, 2024
1 parent 760b9d4 commit cef3832
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/normal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
CACHIX_CACHE_NAME: ${{ secrets.CACHIX_CACHE_NAME }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -64,6 +66,8 @@ jobs:
CACHIX_CACHE_NAME: ${{ secrets.CACHIX_CACHE_NAME }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -90,6 +94,8 @@ jobs:
CACHIX_CACHE_NAME: ${{ secrets.CACHIX_CACHE_NAME }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -115,6 +121,8 @@ jobs:
CACHIX_CACHE_NAME: ${{ secrets.CACHIX_CACHE_NAME }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -143,6 +151,8 @@ jobs:
if: ${{ ! inputs.is_release }}

steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -180,6 +190,8 @@ jobs:
packages: write

steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -227,6 +239,8 @@ jobs:
contents: write

steps:
- name: Define Proper 'HOME' Path
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
15 changes: 0 additions & 15 deletions tools/ci/setup-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ git config --global safe.directory "*" || {
ROOT_DIR=$(git rev-parse --show-toplevel)
. "$ROOT_DIR/tools/general.sh"

# Some home workaround for this issue:
# https://github.com/actions/runner/issues/863
# Why, really whyyyy is Github overwriting the HOME directory!
if [ "$HOME" = "/github/home" ]; then
print_warning "Making symlink for '$HOME' to /root to" \
"workaround some Github stupidity."

ls -al "/github" || true
ls -al "/github/home" || true

rm -rf /github/home || true
ln -s /root "$HOME"
ls -al "/github"
fi

ci_setup_git

0 comments on commit cef3832

Please sign in to comment.