Skip to content

add support for localization #1325

add support for localization

add support for localization #1325

Workflow file for this run

name: build
on:
push:
env:
ARTIFACTS_PATH: artifacts
PROJECT_NAME: genesis_core
REPO_ENDPOINT_PUT: http://10.20.0.1:8082
jobs:
Build:
runs-on: self-hosted
if : ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v6
- name: Build Genesis Core
env:
PUSH_CFG: ${{ secrets.PUSH_CFG }}
run: |
set -eux
mkdir -p ${ARTIFACTS_PATH}
source ~/.profile
VERSION="$(genesis get-version .)"
# Build Genesis Core
genesis build $(pwd) --inventory
# Decode and write the push configuration
echo "$PUSH_CFG" | base64 -d > genesis/genesis.push.yaml
genesis push -c genesis/genesis.push.yaml -t local -f --latest
# Upload the VM image
gzip -k output/genesis-core.raw -c | \
curl -X PUT -T - "$REPO_ENDPOINT_PUT/${PROJECT_NAME}/${VERSION}/genesis-core.raw.gz"
# Temporary upload step is done in the build script
echo "${VERSION}" > "${ARTIFACTS_PATH}/version.txt"
- name: Upload the build artifacts
uses: actions/upload-artifact@v7
with:
name: build_artifacts
path: artifacts/