Skip to content

Commit a746ecd

Browse files
author
Christopher Skene
committed
Test builds
1 parent 8783ffd commit a746ecd

2 files changed

Lines changed: 32 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,15 @@ jobs:
4242
- name: Build Harmony (Linux cross)
4343
if: runner.os == 'Linux'
4444
shell: bash
45+
env:
46+
PKG_CONFIG_ALLOW_CROSS: 1
47+
OPENSSL_STATIC: 1
48+
OPENSSL_NO_VENDOR: 0
49+
OPENSSL_DIR: /usr
50+
RUSTFLAGS: "-C target-feature=-crt-static"
4551
run: |
46-
echo "Detected Linux runner. Installing musl dependencies and using cross."
47-
48-
# Install musl-compatible OpenSSL & pkg-config
49-
sudo apt-get update
50-
sudo apt-get install -y pkg-config libssl-dev musl-tools
51-
52-
# Optionally export PKG_CONFIG_ALLOW_CROSS for cross-compile
53-
export PKG_CONFIG_ALLOW_CROSS=1
54-
52+
echo "Detected Linux runner. Using vendored OpenSSL with musl cross-build."
5553
cargo install cross --git https://github.com/cross-rs/cross
56-
57-
# Build for the target
5854
cross build --release --target ${{ matrix.target }}
5955
6056
# Non-Linux builds (macOS + Windows)

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .github/workflows/publish.yml
2+
name: Publish Docker Image
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Log in to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
- name: Build and push
20+
uses: docker/build-push-action@v5
21+
with:
22+
push: true
23+
tags: |
24+
aurabx/harmony:latest
25+
aurabx/harmony:${{ github.ref_name }}

0 commit comments

Comments
 (0)