Skip to content

Merge branch 'BIR-develop' of https://github.com/decenomy/DSW #4

Merge branch 'BIR-develop' of https://github.com/decenomy/DSW

Merge branch 'BIR-develop' of https://github.com/decenomy/DSW #4

Workflow file for this run

name: Build and Extract Files from Docker Container
on:
push:
branches:
- master
jobs:
build-files-linux-x64:
runs-on: ubuntu-22.04
#if: ${{ false }} # Set condition to false to make the workflow inactive
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build and Extract Files from Docker Container
run: |
# Build the Docker image from the Dockerfile in the repository
docker build \
--build-arg CPU_CORES=$(nproc) \
--build-arg TICKER=BIR \
--build-arg NAME=Birake \
--build-arg BASE_NAME=birake \
--build-arg TARGET=master \
-t birake-linux-x64-build \
-f contrib/docker/Dockerfile.dsw-linux-x64-wallet .
# Start the container (if it's not already running)
docker run -d --name birake-linux-x64-build-container birake-linux-x64-build
# Create a temporary directory to hold the extracted files
mkdir release_files
# Copy files from the Docker container to the local filesystem
docker cp birake-linux-x64-build-container:/BIR/deploy/linux-x64 release_files/
- name: Archive and Upload Extracted Files
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: release_files
build-files-linux-arm64:
runs-on: ubuntu-22.04
#if: ${{ false }} # Set condition to false to make the workflow inactive
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build and Extract Files from Docker Container
run: |
# Build the Docker image from the Dockerfile in the repository
docker build \
--build-arg CPU_CORES=$(nproc) \
--build-arg TICKER=BIR \
--build-arg NAME=Birake \
--build-arg BASE_NAME=birake \
--build-arg TARGET=master \
-t birake-linux-arm64-build \
-f contrib/docker/Dockerfile.dsw-linux-arm64-wallet .
# Start the container (if it's not already running)
docker run -d --name birake-linux-arm64-build-container birake-linux-arm64-build
# Create a temporary directory to hold the extracted files
mkdir release_files
# Copy files from the Docker container to the local filesystem
docker cp birake-linux-arm64-build-container:/BIR/deploy/linux-arm64 release_files/
- name: Archive and Upload Extracted Files
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: release_files
build-windows-x64:
runs-on: ubuntu-22.04
#if: ${{ false }} # Set condition to false to make the workflow inactive
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build and Extract Files from Docker Container
run: |
# Build the Docker image from the Dockerfile in the repository
docker build \
--build-arg CPU_CORES=$(nproc) \
--build-arg TICKER=BIR \
--build-arg NAME=Birake \
--build-arg BASE_NAME=birake \
--build-arg TARGET=master \
-t birake-windows-x64-build \
-f contrib/docker/Dockerfile.dsw-windows-x64-wallet .
# Start the container (if it's not already running)
docker run -d --name birake-windows-x64-build-container birake-windows-x64-build
# Create a temporary directory to hold the extracted files
mkdir release_files
# Copy files from the Docker container to the local filesystem
docker cp birake-windows-x64-build-container:/BIR/deploy/windows-x64 release_files/
- name: Archive and Upload Extracted Files
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: release_files
build-macos-x64:
runs-on: ubuntu-22.04
#if: ${{ false }} # Set condition to false to make the workflow inactive
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build and Extract Files from Docker Container
run: |
# Build the Docker image from the Dockerfile in the repository
docker build \
--build-arg CPU_CORES=$(nproc) \
--build-arg TICKER=BIR \
--build-arg NAME=Birake \
--build-arg BASE_NAME=birake \
--build-arg TARGET=master \
-t birake-macos-x64-build \
-f contrib/docker/Dockerfile.dsw-macos-x64-wallet .
# Start the container (if it's not already running)
docker run -d --name birake-macos-x64-build-container birake-macos-x64-build
# Create a temporary directory to hold the extracted files
mkdir release_files
# Copy files from the Docker container to the local filesystem
docker cp birake-macos-x64-build-container:/BIR/deploy/macos-x64 release_files/
- name: Archive and Upload Extracted Files
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: release_files