File tree 8 files changed +20
-7
lines changed
actions/download-releases
aarch64-unknown-linux-gnu
arm-unknown-linux-gnueabihf
armv7-unknown-linux-gnueabihf
8 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 12
12
- shell : bash
13
13
run : |
14
14
curl "https://raw.githubusercontent.com/witnet/genesis_block/master/latest/genesis_block.json" -o genesis_block.json
15
- cp witnet.toml release/
16
15
cp genesis_block.json release/
16
+ cp witnet.toml release/
17
17
18
18
# Download & Hash Releases
19
19
# Macos
24
24
- shell : bash
25
25
run : |
26
26
cp genesis_block.json ./all-releases/macos/
27
+ cp witnet.toml ./all-releases/macos/
27
28
cp all-releases/macos/witnet_toolkit release/witnet_toolkit-x86_64-apple-darwin
28
29
29
30
# Windows
34
35
- shell : bash
35
36
run : |
36
37
cp genesis_block.json ./all-releases/windows/
38
+ cp witnet.toml ./all-releases/windows/
37
39
cp all-releases/windows/witnet_toolkit.exe release/witnet_toolkit-x86_64-pc-windows-msvc.exe
38
40
39
41
# x86_64
44
46
- shell : bash
45
47
run : |
46
48
cp genesis_block.json ./all-releases/x86_64/
49
+ cp witnet.toml ./all-releases/x86_64/
47
50
cp all-releases/x86_64/witnet_toolkit release/witnet_toolkit-x86_64-unknown-linux-gnu
48
51
49
52
# armv7
54
57
- shell : bash
55
58
run : |
56
59
cp genesis_block.json ./all-releases/armv7/
60
+ cp witnet.toml ./all-releases/armv7/
57
61
cp all-releases/armv7/witnet_toolkit release/witnet_toolkit-armv7-unknown-linux-gnueabihf
58
62
59
63
# aarch64
64
68
- shell : bash
65
69
run : |
66
70
cp genesis_block.json ./all-releases/aarch64/
71
+ cp witnet.toml ./all-releases/aarch64/
67
72
cp all-releases/aarch64/witnet_toolkit release/witnet_toolkit-aarch64-unknown-linux-gnu
68
73
69
- # Copy gensis_block & witnet.toml
74
+ # Copy genesis_block & witnet.toml
70
75
- shell : bash
71
76
run : |
72
77
cp genesis_block.json ./release
Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ jobs:
133
133
- name : Building Macos Binary
134
134
run : MACOSX_DEPLOYMENT_TARGET=10.12 OPENSSL_STATIC=1 OPENSSL_DIR="/usr/local/opt/openssl" cargo build --release -p witnet -p witnet_toolkit
135
135
136
+ # Ensure that distributable binary files can be executed
137
+ - name : Make binaries executable
138
+ run : chmod +x target/release/witnet*
139
+
136
140
# Upload Build Releases
137
141
- uses : actions/upload-artifact@v3
138
142
with :
Original file line number Diff line number Diff line change 1
- FROM ubuntu:latest
1
+ FROM ubuntu:focal
2
2
3
3
# Install basic environment dependencies
4
4
RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1
- FROM ubuntu:latest
1
+ FROM ubuntu:focal
2
2
3
3
# Install basic environment dependencies
4
4
RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1
- FROM ubuntu:latest
1
+ FROM ubuntu:focal
2
2
3
3
# Install basic environment dependencies
4
4
RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1
- FROM ubuntu:latest
1
+ FROM ubuntu:focal
2
2
3
3
# Install basic environment dependencies
4
4
RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1
- FROM --platform=$TARGETPLATFORM ubuntu:focal
1
+ FROM --platform=$TARGETPLATFORM ubuntu:jammy
2
2
3
3
# Install basic environment dependencies
4
4
RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ if [[ "$TRIPLET" == *"linux"* ]]; then
16
16
TRIPLET=${TRIPLET/ pc/ unknown}
17
17
fi
18
18
19
+ if [[ " $TRIPLET " == * " arm-" * ]]; then
20
+ TRIPLET=${TRIPLET/ arm/ armv7}
21
+ fi
22
+
19
23
URL=" https://github.com/witnet/witnet-rust/releases/download/$VERSION /witnet-$VERSION -$TRIPLET .tar.gz"
20
24
21
25
FILENAME=" $VERSION .tar.gz"
You can’t perform that action at this time.
0 commit comments