This repository has been archived by the owner on Oct 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from hotosm/revert-438-ci/gh-workflows
Revert "Update workflows to use gh-workflows repo"
- Loading branch information
Showing
9 changed files
with
59 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,27 @@ | ||
name: 📖 Publish Docs | ||
name: Publish docs | ||
|
||
on: | ||
push: | ||
paths: | ||
- docs/** | ||
- src/** | ||
- mkdocs.yml | ||
branches: [master] | ||
# Allow manual trigger (workflow_dispatch) | ||
workflow_dispatch: | ||
|
||
branches: | ||
- master | ||
permissions: | ||
contents: write | ||
jobs: | ||
build_doxygen: | ||
uses: hotosm/gh-workflows/.github/workflows/doxygen_build.yml@1.0.1 | ||
with: | ||
output_path: docs/apidocs | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
|
||
|
||
publish_docs: | ||
uses: hotosm/gh-workflows/.github/workflows/mkdocs_build.yml@1.0.1 | ||
needs: [build_doxygen] | ||
with: | ||
image: ghcr.io/${{ github.repository }}:ci | ||
doxygen: true | ||
- uses: actions/cache@v3 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material mkdocs-exclude mkdocstrings | ||
- run: mkdocs gh-deploy --force |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 🧪 Build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Relies on the master branch built docker image for build-deps | ||
- name: Start Docker Compose & build | ||
run: cd docker && docker-compose up -d | ||
|
||
# Copy Underpass library | ||
- name: Copy library | ||
run: docker-compose -f docker-compose.yml exec -T underpass sh -c "cp /code/build/.libs/libunderpass.so /usr/lib" | ||
|
||
# Build and run tests | ||
- name: Build and run tests | ||
run: | | ||
docker-compose -f docker-compose.yml exec -T underpass sh -c "cd /code/build && make check -j `nproc`" | ||
exit_code=$? | ||
if [ $exit_code -ne 0 ]; then | ||
echo "Test failed with exit code $exit_code" | ||
exit $exit_code | ||
fi | ||
This file was deleted.
Oops, something went wrong.
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