Skip to content

Commit

Permalink
.github/workflows/testing.yml: use github-server-url with actions/che…
Browse files Browse the repository at this point in the history
…ckout

Signed-off-by: Tim Janik <timj@gnu.org>
  • Loading branch information
tim-janik committed Nov 15, 2024
1 parent 09c25d6 commit 786a9f8
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:noble-latest', options: --user runner }
steps:
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,git@github.com:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive, github-server-url: 'https://github.com' } }
- run: git fetch -f --tags # Fix actions/checkout#290
- run: git describe --always --long
- name: 'Configure build presets'
run: |
echo -e ' prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
Expand All @@ -36,11 +34,9 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:noble-latest', options: --user runner }
steps:
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,git@github.com:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive, github-server-url: 'https://github.com' } }
- run: git fetch -f --tags # Fix actions/checkout#290
- run: git describe --always --long
- name: 'Configure build presets'
run: |
echo -e ' prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
Expand All @@ -55,11 +51,9 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:arch-latest' }
steps:
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,git@github.com:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive, github-server-url: 'https://github.com' } }
- run: git fetch -f --tags # Fix actions/checkout#290
- run: git describe --always --long
- name: 'Configure build presets'
run: |
echo 'prefix=/' > config-defaults.mk ;# reset any previous config-defaults.mk
Expand All @@ -82,11 +76,9 @@ jobs:
runs-on: ubuntu-latest
container: { image: 'ghcr.io/tim-janik/anklang-ci:noble-latest', options: --user runner }
steps:
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive } }
- name: 'Fetch all tags'
run: |
sed 's,git@github.com:,https://github.com/,' -i .git/config ; # fetch without ssh creds
git fetch -f --tags && git describe --always --long ; # Fix actions/checkout#290
- { uses: actions/checkout@v4.1.1, with: { fetch-depth: 0, submodules: recursive, github-server-url: 'https://github.com' } }
- run: git fetch -f --tags # Fix actions/checkout#290
- run: git describe --always --long
- 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 786a9f8

Please sign in to comment.