-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (31 loc) · 994 Bytes
/
rust_linux.yml
File metadata and controls
41 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Compile Rust bindings for linux x86_64
on:
workflow_dispatch:
env:
MAIN_SOLUTION_PATH: "./csharp/IotaWalletNet/IotaWalletNet.sln"
jobs:
build:
runs-on: ubuntu-latest
environment: myenv
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: ATiltedTree/setup-rust@v1.0.5
with:
rust-version: stable
- name: Clone wallet.rs
uses: GuillaumeFalourd/clone-github-repo-action@v2
with:
owner: 'iotaledger'
repository: 'wallet.rs'
- name: Compile swift bindings
run: |
cd ./wallet.rs/wallet/bindings/swift
cargo build --release
mkdir iota_wallet_linux_x86_64
cp ../../../target/release/libiota_wallet.so ./iota_wallet_linux_x86_64/.
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.1
with:
name: iota_wallet_linux_x86_64
path: ./wallet.rs/wallet/bindings/swift/iota_wallet_linux_x86_64