-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Branch commit log: misc/cirun: remove, now unused .github/workflows/testing.yml: use new images with actions/[email protected] misc/Dockerfile.arch: build image for uid=1001(runner) gid=127(docker) misc/Dockerfile.focal: build image for uid=1001(runner) gid=127(docker) .github/workflows/testing.yml: FocalAssets: fix $HOME and git checkout .github/workflows/testing.yml: debug all stages .github/workflows/testing.yml: test checkout fixups .github/workflows/testing.yml: quote container image names .github/workflows/testing.yml: run build steps in anklang-ci containers .github/workflows/testing.yml: copy Docs secret into docker volume Signed-off-by: Tim Janik <[email protected]>
- Loading branch information
Showing
4 changed files
with
46 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,21 +13,19 @@ jobs: | |
|
||
FocalAssets: | ||
runs-on: ubuntu-latest | ||
env: { CITAG: "focal" } | ||
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' } | ||
steps: | ||
- { 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/cache@v4, with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" } } | ||
- run: | | ||
misc/cirun build "/tmp/cicache" | ||
- { 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 | ||
misc/cirun dir2vol . ;# copy current git to /cirun | ||
- name: 'Build Dist Assets' | ||
run: | | ||
misc/cirun make mkassets | ||
misc/cirun vol2dir . ;# move /cirun out of docker volume | ||
make mkassets | ||
- uses: actions/upload-artifact@v4 | ||
with: { name: assets, path: assets/ } | ||
- uses: actions/upload-artifact@v4 | ||
|
@@ -36,46 +34,43 @@ jobs: | |
UploadDocs: | ||
if: ${{ github.repository == 'tim-janik/anklang' && github.ref == 'refs/heads/trunk' }} | ||
runs-on: ubuntu-latest | ||
env: { CITAG: "focal" } | ||
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' } | ||
steps: | ||
- { 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/cache@v4, with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" } } | ||
- run: | | ||
misc/cirun build "/tmp/cicache" | ||
- { 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 | ||
misc/cirun dir2vol . ;# copy current git to /cirun | ||
- name: 'Upload API Docs' # http://tim-janik.github.io/docs/anklang | ||
run: | | ||
misc/cirun make -j`nproc` all | ||
make -j`nproc` all | ||
(umask 0077 && cat <<< "${{ secrets.SSH_ID_GHDOCS4ANKLANG_ECDSA }}" > .git/.ssh_id_ghdocs4anklang) | ||
misc/cirun doc/poxy.sh -b -u | ||
doc/poxy.sh -b -u | ||
ArchReplay: | ||
runs-on: ubuntu-latest | ||
env: { CITAG: "arch" } | ||
container: { image: 'ghcr.io/tim-janik/anklang-ci:arch-latest' } | ||
steps: | ||
- { 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/cache@v4, with: { path: "/tmp/cicache", key: "ciarch-${{hashFiles ('misc/Dockerfile.arch')}}" } } | ||
- run: | | ||
misc/cirun build "/tmp/cicache" | ||
- { 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 | ||
misc/cirun dir2vol . ;# copy current git to /cirun | ||
- name: 'Build Anklang' | ||
run: | | ||
misc/cirun make GCC_COLORS="" -j`nproc` all | ||
make GCC_COLORS="" -j`nproc` all | ||
- name: 'Run Tests' | ||
run: | | ||
misc/cirun make -j`nproc` check | ||
make -j`nproc` check | ||
- name: 'Run X11 GUI Tests' | ||
run: | | ||
misc/cirun make x11test-v | ||
misc/cirun vol2dir . ;# move /cirun out of docker volume | ||
make x11test-v | ||
# Artifact upload from x11test | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ always() }} | ||
|
@@ -84,32 +79,31 @@ jobs: | |
FocalClangTidy: | ||
if: ${{ ! contains(github.ref, 'refs/tags/') }} | ||
runs-on: ubuntu-latest | ||
env: { CITAG: "focal" } | ||
container: { image: 'ghcr.io/tim-janik/anklang-ci:focal-latest' } | ||
steps: | ||
- { 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/cache@v4, with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" } } | ||
- run: | | ||
misc/cirun build "/tmp/cicache" | ||
- { 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 | ||
misc/cirun dir2vol . ;# copy current git to /cirun | ||
- run: | | ||
misc/cirun make -j`nproc` all | ||
make -j`nproc` all | ||
- run: | | ||
misc/cirun make -j`nproc` check | ||
make -j`nproc` check | ||
- name: 'Make clang-tidy' | ||
run: | | ||
misc/cirun make -j`nproc` clang-tidy | ||
make -j`nproc` clang-tidy | ||
# Artifact upload from clang-tidy | ||
- uses: actions/upload-artifact@v4 | ||
with: { name: clang-tidy, path: out/clang-tidy/ } | ||
- name: 'Make branch-check' | ||
# Use non-0 exit status for a failing branch-check on PRs | ||
run: | | ||
test -z "${{ github.event.pull_request }}" || BRANCH_CHECK_EXIT=77 | ||
misc/cirun make branch-check BRANCH_CHECK_EXIT=$BRANCH_CHECK_EXIT | ||
make branch-check BRANCH_CHECK_EXIT=$BRANCH_CHECK_EXIT | ||
Ping-IRC: | ||
if: ${{ always() }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.