Skip to content

Commit

Permalink
.github/workflows/testing.yml: use new images with actions/checkout@v…
Browse files Browse the repository at this point in the history
…4.1.1

Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Jun 25, 2024
1 parent fb47c8d commit 0961a8f
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' }
steps:
- run: |
sudo chown -R `id -u`:`id -g` . ~ ;# /github/home - actions/runner/issues/863
export HOME=$(env -i bash -c 'echo ~') && echo HOME=$HOME | sudo tee -a $GITHUB_ENV
! [[ $RUNNER_TEMP =~ _ ]] || sudo chmod -R 0777 $RUNNER_TEMP ;# for GH action cache
- name: 'Git Checkout'
run: |
git --version && git clone -q --recurse-submodules https://github.com/$GITHUB_REPOSITORY .
git fetch origin $GITHUB_REF # e.g. refs/pull/nnn/merge
[[ $GITHUB_REF =~ ^refs/heads/ ]] && BRANCHORSHA=$GITHUB_REF_NAME || BRANCHORSHA=$GITHUB_SHA
git checkout -q $BRANCHORSHA && git describe --always
- { uses: actions/[email protected], with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,[email protected]:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- name: 'Configure build presets'
run: |
echo -e ' prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
Expand All @@ -41,9 +36,11 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' }
steps:
- run: id && pwd && env && ls -al
- { uses: actions/[email protected], with: { fetch-depth: 0 } } # Fix actions/checkout#290
- run: git fetch -f --tags && git submodule update --init --recursive && git describe
- { uses: actions/[email protected], with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,[email protected]:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- name: 'Configure build presets'
run: |
echo -e ' prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
Expand All @@ -57,9 +54,11 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:arch-latest' }
steps:
- run: id && pwd && env && ls -al
- { uses: actions/[email protected], with: { fetch-depth: 0 } } # Fix actions/checkout#290
- run: git fetch -f --tags && git submodule update --init --recursive && git describe
- { uses: actions/[email protected], with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,[email protected]:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- name: 'Configure build presets'
run: |
echo 'prefix=/' > config-defaults.mk ;# reset any previous config-defaults.mk
Expand All @@ -82,9 +81,11 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' }
steps:
- run: id && pwd && env && ls -al
- { uses: actions/[email protected], with: { fetch-depth: 0 } } # Fix actions/checkout#290
- run: git fetch -f --tags && git submodule update --init --recursive && git describe
- { uses: actions/[email protected], with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,[email protected]:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- name: 'Configure build presets'
run: |
echo -e ' prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
Expand Down

0 comments on commit 0961a8f

Please sign in to comment.