Skip to content

Commit

Permalink
fix(cd): target specific ubuntu versions and ensure execution permiss…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
aesedepece committed Oct 18, 2022
1 parent 376612c commit 6b3142a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ jobs:
- name: Building Macos Binary
run: MACOSX_DEPLOYMENT_TARGET=10.12 OPENSSL_STATIC=1 OPENSSL_DIR="/usr/local/opt/openssl" cargo build --release -p witnet -p witnet_toolkit

# Ensure that distributable binary files can be executed
- name: Make binaries executable
run: chmod +x target/release/witnet*

# Upload Build Releases
- uses: actions/upload-artifact@v3
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:focal

# Install basic environment dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:focal

# Install basic environment dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:focal

# Install basic environment dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:focal

# Install basic environment dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion docker/witnet-rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$TARGETPLATFORM ubuntu:focal
FROM --platform=$TARGETPLATFORM ubuntu:jammy

# Install basic environment dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
4 changes: 4 additions & 0 deletions docker/witnet-rust/downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if [[ "$TRIPLET" == *"linux"* ]]; then
TRIPLET=${TRIPLET/pc/unknown}
fi

if [[ "$TRIPLET" == *"arm-"* ]]; then
TRIPLET=${TRIPLET/arm/armv7}
fi

URL="https://github.com/witnet/witnet-rust/releases/download/$VERSION/witnet-$VERSION-$TRIPLET.tar.gz"

FILENAME="$VERSION.tar.gz"
Expand Down

0 comments on commit 6b3142a

Please sign in to comment.