mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Compare commits
3 commits
7aa756f6a4
...
6fdcd68172
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fdcd68172 | ||
|
|
e4f4030a5e | ||
|
|
2fb6347125 |
9 changed files with 23 additions and 22 deletions
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
lfscheck:
|
lfscheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Fetch the base branch
|
- name: Fetch the base branch
|
||||||
run: git fetch origin ${{ env.BASE_SHA }}
|
run: git fetch origin ${{ env.BASE_SHA }}
|
||||||
|
|
@ -24,27 +24,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GIT_LFS_SKIP_SMUDGE: "1"
|
GIT_LFS_SKIP_SMUDGE: "1"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Add remote fork origin for LFS
|
- name: Add remote fork origin for LFS
|
||||||
run: |
|
run: |
|
||||||
PR_REPO="${{ gitea.event.pull_request.head.repo.full_name || gitea.repository }}"
|
PR_REPO="${{ gitea.event.pull_request.head.repo.full_name || gitea.repository }}"
|
||||||
git remote add ${{ gitea.actor }} https://gitea.wildfiregames.com/${PR_REPO}.git
|
git remote add ${{ gitea.actor }} https://gitea.wildfiregames.com/${PR_REPO}.git
|
||||||
- name: Workaround for authentication problem with LFS
|
|
||||||
# https://gitea.com/gitea/act_runner/issues/164
|
|
||||||
run: |
|
|
||||||
git config --local \
|
|
||||||
http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/.extraheader ''
|
|
||||||
|
|
||||||
PR_REPO="${{ gitea.event.pull_request.head.repo.full_name || gitea.repository }}"
|
|
||||||
EXTRAHEADER="$(git config --get --local http.${{ gitea.server_url }}/.extraheader)"
|
|
||||||
git config --local \
|
|
||||||
http.${{ gitea.server_url }}/${PR_REPO}.git/info/lfs/objects/batch.extraheader \
|
|
||||||
'${EXTRAHEADER}'
|
|
||||||
git config --local \
|
|
||||||
http.${{ gitea.server_url }}/${PR_REPO}.git/info/lfs/objects/.extraheader ''
|
|
||||||
- name: Download necessary LFS assets
|
- name: Download necessary LFS assets
|
||||||
shell: sh {0}
|
shell: sh {0}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
cppcheck:
|
cppcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
# cache only works for items in workspace, so configure apt to allow for caching.
|
# cache only works for items in workspace, so configure apt to allow for caching.
|
||||||
- name: Setup apt cache locations
|
- name: Setup apt cache locations
|
||||||
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
- name: Cache apt pkg db and and deb files
|
- name: Cache apt pkg db and and deb files
|
||||||
id: apt-cache
|
id: apt-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
apt-cache
|
apt-cache
|
||||||
|
|
@ -49,11 +49,11 @@ jobs:
|
||||||
copyright:
|
copyright:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
|
|
@ -66,10 +66,10 @@ jobs:
|
||||||
jenkinsfiles:
|
jenkinsfiles:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ echo "Building cpp-httplib..."
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ done
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ done
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ done
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ done
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@ echo "Building SpiderMonkey..."
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OS="${OS:=$(uname -s)}"
|
OS="${OS:=$(uname -s)}"
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ done
|
||||||
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
||||||
echo "Skipping - already built (use --force-rebuild to override)"
|
echo "Skipping - already built (use --force-rebuild to override)"
|
||||||
exit
|
exit
|
||||||
|
else
|
||||||
|
rm -f .already-built
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue