-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature/ipv6_wg
- Loading branch information
Showing
746 changed files
with
43,316 additions
and
15,178 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 |
---|---|---|
|
@@ -6,20 +6,27 @@ on: | |
jobs: | ||
build: | ||
runs-on: arc-ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: documentation/docs | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Dependencies (Linux) | ||
run: sudo apt-get update && sudo apt-get install -y build-essential curl wget libssl-dev libudev-dev squashfs-tools protobuf-compiler git python3 && sudo apt-get update --fix-missing | ||
- name: Install pip3 | ||
run: sudo apt install -y python3-pip | ||
run: sudo apt install -y python3-pip | ||
- name: Install Python3 modules | ||
run: sudo pip3 install pandas tabulate | ||
- name: Install rsync | ||
run: sudo apt-get install rsync | ||
- uses: rlespinasse/[email protected] | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
- name: Install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -29,33 +36,13 @@ jobs: | |
with: | ||
command: build | ||
args: --workspace --release | ||
- name: Install mdbook and plugins | ||
run: cd documentation && ./install_mdbook_deps.sh | ||
- name: Remove existing Nym config directory (`~/.nym/`) | ||
run: cd documentation && ./remove_existing_config.sh | ||
continue-on-error: false | ||
# This is the original flow | ||
# - name: Build all projects in documentation/ & move to ~/dist/docs/ | ||
# run: cd documentation && ./build_all_to_dist.sh | ||
|
||
# This is a workaround replacement which builds on the last working commit b332a6b55668f60988e36961f3f62a794ba82ddb and then on current branch | ||
- name: Save current branch to ~/current_branch | ||
run: git rev-parse --abbrev-ref HEAD > ~/current_branch | ||
- name: Git pull, reset & switch to b332a6b55668f60988e36961f3f62a794ba82ddb | ||
run: git pull && git reset --hard && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ from b332a6b55668f60988e36961f3f62a794ba82ddb | ||
run: cd documentation && ./build_all_to_dist.sh | ||
|
||
- name: Switch to current branch | ||
run: git checkout $echo "$(cat ~/current_branch)" | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ on current branch | ||
run: cd documentation && ./build_all_to_dist.sh && rm ~/current_branch | ||
|
||
# End of replacemet | ||
|
||
- name: Post process | ||
run: cd documentation && ./post_process.sh | ||
continue-on-error: false | ||
- name: Install project dependencies | ||
run: pnpm i | ||
- name: Build project | ||
run: pnpm run build | ||
- name: Move files to /dist/ | ||
run: ../scripts/move-to-dist.sh | ||
|
||
- name: Create Vercel project file | ||
uses: mobiledevops/secret-to-file-action@v1 | ||
|
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 |
---|---|---|
|
@@ -3,28 +3,35 @@ name: ci-docs | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: master | ||
branches-ignore: [master] | ||
paths: | ||
- 'documentation/docs/**' | ||
- '.github/workflows/ci-docs.yml' | ||
- "documentation/docs/**" | ||
- ".github/workflows/ci-docs.yml" | ||
|
||
jobs: | ||
build: | ||
runs-on: arc-ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: documentation/docs | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Dependencies (Linux) | ||
run: sudo apt-get update && sudo apt-get install -y build-essential curl wget libssl-dev libudev-dev squashfs-tools protobuf-compiler git python3 && sudo apt-get update --fix-missing | ||
- name: Install pip3 | ||
run: sudo apt install -y python3-pip | ||
run: sudo apt install -y python3-pip | ||
- name: Install Python3 modules | ||
run: sudo pip3 install pandas tabulate | ||
- name: Install rsync | ||
run: sudo apt-get install rsync | ||
- uses: rlespinasse/[email protected] | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
- name: Install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -34,30 +41,13 @@ jobs: | |
with: | ||
command: build | ||
args: --workspace --release | ||
- name: Install mdbook and plugins | ||
run: cd documentation && ./install_mdbook_deps.sh | ||
- name: Remove existing Nym config directory (`~/.nym/`) | ||
run: cd documentation && ./remove_existing_config.sh | ||
continue-on-error: false | ||
|
||
# This is the original flow | ||
# - name: Build all projects in documentation/ & move to ~/dist/docs/ | ||
# run: cd documentation && ./build_all_to_dist.sh | ||
|
||
# This is a workaround replacement which builds on the last working commit b332a6b55668f60988e36961f3f62a794ba82ddb and then on current branch | ||
- name: Save current branch to ~/current_branch | ||
run: git rev-parse --abbrev-ref HEAD > ~/current_branch | ||
- name: Git pull, reset & switch to b332a6b55668f60988e36961f3f62a794ba82ddb | ||
run: git pull && git reset --hard && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ from b332a6b55668f60988e36961f3f62a794ba82ddb | ||
run: cd documentation && ./build_all_to_dist.sh | ||
|
||
- name: Switch to current branch | ||
run: git checkout $echo "$(cat ~/current_branch)" | ||
- name: Build all projects in documentation/ & move to ~/dist/docs/ on current branch | ||
run: cd documentation && ./build_all_to_dist.sh && rm ~/current_branch | ||
|
||
# End of replacemet | ||
- name: Install project dependencies | ||
run: pnpm i | ||
- name: Build project | ||
run: pnpm run build | ||
- name: Move files to /dist/ | ||
run: ../scripts/move-to-dist.sh | ||
|
||
- name: Deploy branch to CI www | ||
continue-on-error: true | ||
|
@@ -68,5 +58,5 @@ jobs: | |
SOURCE: "dist/docs/" | ||
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | ||
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/docs-${{ env.GITHUB_REF_SLUG }} | ||
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/docs-nextra-${{ env.GITHUB_REF_SLUG }} | ||
EXCLUDE: "/node_modules/" |
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
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,55 @@ | ||
name: Build and upload nym node container to harbor.nymte.ch | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
WORKING_DIRECTORY: "nym-node" | ||
CONTAINER_NAME: "nym-node" | ||
|
||
jobs: | ||
build-container: | ||
runs-on: arc-ubuntu-22.04-dind | ||
steps: | ||
- name: Login to Harbor | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: harbor.nymte.ch | ||
username: ${{ secrets.HARBOR_ROBOT_USERNAME }} | ||
password: ${{ secrets.HARBOR_ROBOT_SECRET }} | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure git identity | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Lawrence Stalder" | ||
- name: Get version from cargo.toml | ||
uses: mikefarah/[email protected] | ||
id: get_version | ||
with: | ||
cmd: yq -oy '.package.version' ${{ env.WORKING_DIRECTORY }}/Cargo.toml | ||
|
||
- name: Check if tag exists | ||
run: | | ||
if git rev-parse ${{ steps.get_version.outputs.value }} >/dev/null 2>&1; then | ||
echo "Tag ${{ steps.get_version.outputs.value }} already exists" | ||
fi | ||
- name: Remove existing tag if exists | ||
run: | | ||
if git rev-parse ${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }} >/dev/null 2>&1; then | ||
git push --delete origin ${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }} | ||
git tag -d ${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }} | ||
fi | ||
- name: Create tag | ||
run: | | ||
git tag -a ${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }} -m "Version ${{ steps.get_version.outputs.result }}" | ||
git push origin ${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }} | ||
- name: BuildAndPushImageOnHarbor | ||
run: | | ||
docker build -f ${{ env.WORKING_DIRECTORY }}/Dockerfile . -t harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }}:${{ steps.get_version.outputs.result }} -t harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }}:latest | ||
docker push harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }} --all-tags |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.