forked from nymtech/nym
-
Notifications
You must be signed in to change notification settings - Fork 0
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 nymtech#5172 from nymtech/release/2024.13-magura-p…
…atched Update master with latest releases
- Loading branch information
Showing
1,078 changed files
with
61,617 additions
and
21,173 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
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,41 @@ | ||
name: ci-build-vpn-api-wasm | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'common/**' | ||
- 'nym-credential-proxy/**' | ||
- '.github/workflows/ci-build-vpn-api-wasm.yml' | ||
|
||
jobs: | ||
wasm: | ||
runs-on: arc-ubuntu-22.04 | ||
env: | ||
CARGO_TERM_COLOR: always | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
- name: Install wasm-opt | ||
uses: ./.github/actions/install-wasm-opt | ||
with: | ||
version: '116' | ||
|
||
- name: Install wasm-bindgen-cli | ||
run: cargo install wasm-bindgen-cli | ||
|
||
- name: "Build" | ||
run: make | ||
working-directory: nym-credential-proxy/vpn-api-lib-wasm |
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
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,6 +1,7 @@ | ||
name: ci-lint-typescript | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- "ts-packages/**" | ||
|
@@ -14,7 +15,7 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04-16-core | ||
runs-on: arc-ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rlespinasse/[email protected] | ||
|
@@ -53,24 +54,3 @@ jobs: | |
run: yarn lint | ||
- name: Typecheck with tsc | ||
run: yarn tsc | ||
|
||
- name: Matrix - Node Install | ||
run: npm install | ||
working-directory: .github/workflows/support-files | ||
- name: Matrix - Send Notification | ||
env: | ||
NYM_NOTIFICATION_KIND: ts-packages | ||
NYM_PROJECT_NAME: "ts-packages" | ||
NYM_CI_WWW_BASE: "${{ secrets.NYM_CI_WWW_BASE }}" | ||
NYM_CI_WWW_LOCATION: "ts-${{ env.GITHUB_REF_SLUG }}" | ||
GIT_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" | ||
GIT_BRANCH: "${GITHUB_REF##*/}" | ||
IS_SUCCESS: "${{ job.status == 'success' }}" | ||
MATRIX_SERVER: "${{ secrets.MATRIX_SERVER }}" | ||
MATRIX_ROOM: "${{ secrets.MATRIX_ROOM }}" | ||
MATRIX_USER_ID: "${{ secrets.MATRIX_USER_ID }}" | ||
MATRIX_TOKEN: "${{ secrets.MATRIX_TOKEN }}" | ||
MATRIX_DEVICE_ID: "${{ secrets.MATRIX_DEVICE_ID }}" | ||
uses: docker://keybaseio/client:stable-node | ||
with: | ||
args: .github/workflows/support-files/notifications/entry_point.sh |
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,45 @@ | ||
name: ci-nym-credential-proxy | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'common/**' | ||
- 'nym-credential-proxy/**' | ||
- '.github/workspace/ci-nym-credential-proxy.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: arc-ubuntu-22.04 | ||
env: | ||
CARGO_TERM_COLOR: always | ||
MANIFEST_PATH: "--manifest-path nym-credential-proxy/Cargo.toml" | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: ${{ env.MANIFEST_PATH }} --all -- --check | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: ${{ env.MANIFEST_PATH }} --workspace --all-targets | ||
|
||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: ${{ env.MANIFEST_PATH }} --workspace --all-targets -- -D warnings |
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,11 @@ | ||
name: Hello world | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
my-job: | ||
runs-on: arc-ubuntu-22.04 | ||
steps: | ||
- name: my-step | ||
run: echo "Hello World!" |
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
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 Credential Proxy container to harbor.nymte.ch | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
WORKING_DIRECTORY: "nym-credential-proxy" | ||
CONTAINER_NAME: "credential-proxy" | ||
|
||
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 }}/nym-credential-proxy/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 }}/nym-credential-proxy/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 |
Oops, something went wrong.