Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix publish nox workflow #1633

Merged
merged 4 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.13.0"
".": "0.12.1"
}
54 changes: 41 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,27 @@ on:

jobs:
nox:
name: "Build nox (${{ matrix.arch }})"
runs-on: builder
timeout-minutes: 60

permissions:
contents: write
id-token: write

outputs:
sha256_x86_64: ${{ steps.sha.outputs.sha256_x86_64 }}
sha256_aarch64: ${{ steps.sha.outputs.sha256_aarch64 }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
env:
RUSTFLAGS: "-D warnings --cfg tokio_unstable"
- arch: aarch64
env:
RUSTFLAGS: "-D warnings --cfg tokio_unstable"
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++

steps:
- name: Checkout repository
Expand All @@ -64,20 +75,37 @@ jobs:
secrets: |
kv/crates.io/fluencebot token | CARGO_REGISTRY_TOKEN

- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo build
run: cargo build release -p nox --target ${{ matrix.arch }}-unknown-linux-gnu

- name: Build nox binary
env:
RUSTFLAGS: "--cfg tokio_unstable"
run: cargo build --release -p nox
- name: Upload nox binary
uses: actions/upload-artifact@v3
with:
name: nox-${{ matrix.arch }}
path: target/${{ matrix.arch }}-unknown-linux-gnu/release/nox

upload:
runs-on: ubuntu-latest
timeout-minutes: 60

permissions:
contents: write
id-token: write

outputs:
sha256_x86_64: ${{ steps.sha.outputs.sha256_x86_64 }}
sha256_aarch64: ${{ steps.sha.outputs.sha256_aarch64 }}

steps:
- name: Download nox binaries
uses: actions/download-artifact@v3

- name: Calculate SHA256
id: sha
run: |
# Calculate sha256
for arch in x86_64 aarch64; do
mv ./target/release/nox-${arch}/nox nox-${arch}
mv nox-${arch}/nox nox-${arch}
du -hs nox-${arch}
sha256sum nox-${arch} | tee >> nox_SHA256_SUMS
sha=($(sha256sum nox-${arch}))
Expand All @@ -95,19 +123,19 @@ jobs:

distro:
if: inputs.update-distro == 'true'
needs: nox
needs: upload
uses: fluencelabs/nox-distro/.github/workflows/update_fluence.yml@main
with:
version: |
{
"x86_64": {
"version": "${{ inputs.version }}",
"url": "https://github.com/fluencelabs/nox/releases/download/${{ inputs.tag }}/nox-x86_64",
"sha256": "${{ needs.nox.outputs.sha256_x86_64 }}"
"sha256": "${{ needs.upload.outputs.sha256_x86_64 }}"
},
"aarch64": {
"version": "${{ inputs.version }}",
"url": "https://github.com/fluencelabs/nox/releases/download/${{ inputs.tag }}/nox-aarch64",
"sha256": "${{ needs.nox.outputs.sha256_aarch64 }}"
"sha256": "${{ needs.upload.outputs.sha256_aarch64 }}"
}
}
13 changes: 0 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# Changelog

## [0.13.0](https://github.com/fluencelabs/nox/compare/rust-peer-v0.12.1...rust-peer-v0.13.0) (2023-06-22)


### ⚠ BREAKING CHANGES

* **avm:** update to avm 0.39.1 ([#1627](https://github.com/fluencelabs/nox/issues/1627))

### Features

* **avm:** update to avm 0.39.1 ([#1627](https://github.com/fluencelabs/nox/issues/1627)) ([e6b1afa](https://github.com/fluencelabs/nox/commit/e6b1afa0417d873cf94c4646a723d267e51fdfba))
* Migrate Registry to spell ([#1629](https://github.com/fluencelabs/nox/issues/1629)) ([978ea2c](https://github.com/fluencelabs/nox/commit/978ea2cf64015e47027fd64a60dee2f06a7b3cab))
* **system-service-deployer:** introduce new system service deployment system [fixes NET-487] ([#1623](https://github.com/fluencelabs/nox/issues/1623)) ([f272c02](https://github.com/fluencelabs/nox/commit/f272c02434a7f20df3ec2258e47e47570b90cbbd))

## [0.12.1](https://github.com/fluencelabs/rust-peer/compare/rust-peer-v0.12.0...rust-peer-v0.12.1) (2023-05-22)


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nox"
version = "0.13.0"
version = "0.12.0"
authors = ["Fluence Labs"]
description = "Node implementing peer functionality in the Fluence p2p network"
edition = "2021"
Expand Down
Loading