mirror of
https://github.com/fluencelabs/trust-graph
synced 2025-04-12 17:46:03 +00:00
chore: Fix release (#53)
This commit is contained in:
parent
5a2c4aa1c1
commit
789b7124e3
59
.github/workflows/release.yml
vendored
59
.github/workflows/release.yml
vendored
@ -9,69 +9,30 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: "Publish"
|
name: "Publish"
|
||||||
runs-on: builder
|
runs-on: builder
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
### Setup
|
### Setup
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- run: mkdir -p ~/.bin
|
- uses: actions/setup-node@v3
|
||||||
- run: echo "~/.bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Download jq
|
|
||||||
run: |
|
|
||||||
curl -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -o ~/.bin/jq
|
|
||||||
chmod +x ~/.bin/jq
|
|
||||||
|
|
||||||
- name: Download marine
|
|
||||||
run: bash $GITHUB_WORKSPACE/.github/download_marine.sh
|
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '11'
|
|
||||||
|
|
||||||
- name: Cache npm
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-v03-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-v03-
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
with:
|
||||||
node-version: "15"
|
node-version: "15"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
cache: npm
|
||||||
|
cache-dependency-path: "aqua/package-lock.json"
|
||||||
|
|
||||||
- name: Cache cargo
|
- name: Setup Rust toolchain
|
||||||
uses: actions/cache@v2
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
|
||||||
|
- name: Install Marine
|
||||||
|
uses: baptiste0928/cargo-install@v1.3.0
|
||||||
with:
|
with:
|
||||||
path: |
|
crate: marine
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
~/.cargo/bin
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Install toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
target: wasm32-wasi
|
|
||||||
|
|
||||||
# - name: Install wasm32-wasi target
|
|
||||||
# working-directory: ./service
|
|
||||||
# run: rustup target add wasm32-wasi
|
|
||||||
|
|
||||||
### Build
|
|
||||||
- name: Build trust-graph
|
- name: Build trust-graph
|
||||||
working-directory: ./service
|
working-directory: ./service
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2022-08-30"
|
channel = "nightly-2022-08-30"
|
||||||
targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ]
|
targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user