Skip to content

Commit 6b3142a

Browse files
committed
fix(cd): target specific ubuntu versions and ensure execution permissions
1 parent 376612c commit 6b3142a

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ jobs:
133133
- name: Building Macos Binary
134134
run: MACOSX_DEPLOYMENT_TARGET=10.12 OPENSSL_STATIC=1 OPENSSL_DIR="/usr/local/opt/openssl" cargo build --release -p witnet -p witnet_toolkit
135135

136+
# Ensure that distributable binary files can be executed
137+
- name: Make binaries executable
138+
run: chmod +x target/release/witnet*
139+
136140
# Upload Build Releases
137141
- uses: actions/upload-artifact@v3
138142
with:

docker/cross-compilation/aarch64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:focal
22

33
# Install basic environment dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \

docker/cross-compilation/arm-unknown-linux-gnueabihf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:focal
22

33
# Install basic environment dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \

docker/cross-compilation/armv7-unknown-linux-gnueabihf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:focal
22

33
# Install basic environment dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \

docker/cross-compilation/x86_64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:focal
22

33
# Install basic environment dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \

docker/witnet-rust/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$TARGETPLATFORM ubuntu:focal
1+
FROM --platform=$TARGETPLATFORM ubuntu:jammy
22

33
# Install basic environment dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \

docker/witnet-rust/downloader.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if [[ "$TRIPLET" == *"linux"* ]]; then
1616
TRIPLET=${TRIPLET/pc/unknown}
1717
fi
1818

19+
if [[ "$TRIPLET" == *"arm-"* ]]; then
20+
TRIPLET=${TRIPLET/arm/armv7}
21+
fi
22+
1923
URL="https://github.com/witnet/witnet-rust/releases/download/$VERSION/witnet-$VERSION-$TRIPLET.tar.gz"
2024

2125
FILENAME="$VERSION.tar.gz"

0 commit comments

Comments
 (0)