Compare commits

...

1 Commits

Author SHA1 Message Date
farbanas 11a38cc948 feat: updated workflow for updating versions and changelog 2023-03-24 13:08:14 +01:00
2 changed files with 9 additions and 62 deletions
@@ -1,59 +0,0 @@
name: Build and upload binaries to artifact storage
on:
workflow_dispatch:
inputs:
add_tokio_unstable:
description: 'True to add RUSTFLAGS="--cfg tokio_unstable"'
required: true
default: false
type: boolean
env:
NETWORK: mainnet
jobs:
publish-nym:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get -y install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libudev-dev squashfs-tools
continue-on-error: true
- name: Sets env vars for tokio if set in manual dispatch inputs
run: |
echo 'RUSTFLAGS="--cfg tokio_unstable"' >> $GITHUB_ENV
if: github.event_name == 'workflow_dispatch' && inputs.add_tokio_unstable == true
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build all binaries
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --release
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: nym-binaries-artifacts
path: |
target/release/nym-client
target/release/nym-gateway
target/release/nym-mixnode
target/release/nym-socks5-client
target/release/nym-api
target/release/nym-network-requester
target/release/nym-network-statistics
target/release/nym-cli
retention-days: 30
@@ -34,7 +34,7 @@ jobs:
path: "ci-tools"
token: "${{ secrets.ACCESS_TOKEN_PRIVATE_REPOS }}"
- name: Install Rust stable
- name: install-rust-stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
@@ -82,8 +82,14 @@ jobs:
run: "cargo install --path ."
working-directory: "ci-tools/changelog-updater"
- name: run-changelog-updater
run: "changelog-updater mix ${{ inputs.milestone_id }} release/${{ inputs.release_version }}"
- name: run-changelog-updater-binaries
run: "changelog-updater --release-version ${{ inputs.release_version }} --component binaries mix ${{ inputs.milestone_id }} release/${{ inputs.release_version }}"
- name: run-changelog-updater-connect
run: "changelog-updater --release-version ${{ inputs.release_version }} --component connect --changelog nym-connect/desktop/CHANGELOG.md mix ${{ inputs.milestone_id }} release/${{ inputs.release_version }}"
- name: run-changelog-updater-wallet
run: "changelog-updater --release-version ${{ inputs.release_version }} --component wallet --changelog nym-wallet/CHANGELOG.md mix ${{ inputs.milestone_id }} release/${{ inputs.release_version }}"
- name: push-changes-to-branch
run: |