harmony/.gitea/workflows/harmony_composer.yaml
tahahawa 2ef5ab8b29
Some checks failed
Run Check Script / check (push) Has been cancelled
Run Check Script / check (pull_request) Has been cancelled
Compile and package harmony_composer / package_harmony_composer (pull_request) Failing after 37s
switch back to docker tag runs-on
2025-06-18 11:13:05 -04:00

56 lines
1.8 KiB
YAML

name: Compile and package harmony_composer
on:
pull_request:
push:
branches:
- main
jobs:
package_harmony_composer:
container:
image: hub.nationtech.io/harmony/harmony_composer:latest@sha256:2e200c4fba73ab33d40e7f14d9f7f8a3a3ffa69a086887c201f9eb0d51661081
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Build for Linux x86_64
# run: cargo build --release --bin harmony_composer --target x86_64-unknown-linux-gnu
# - name: Build for Linux ARM64
# run: cargo build --release --bin harmony_composer --target aarch64-unknown-linux-gnu
# - name: Build for Windows x86_64 GNU
# run: cargo build --release --bin harmony_composer --target x86_64-pc-windows-gnu
# - uses: actions/upload-artifact@v3
# with:
# name: binaries
# path: |
# target/x86_64-unknown-linux-gnu/release/harmony_composer
# target/x86_64-pc-windows-gnu/release/harmony_composer.exe
- name: Setup log into hub.nationtech.io
uses: docker/login-action@v3
with:
registry: hub.nationtech.io
username: ${{ secrets.HUB_BOT_USER }}
password: ${{ secrets.HUB_BOT_PASSWORD }}
# TODO: build ARM images too
- name: Build docker container
run: docker build . -t hub.nationtech.io/harmony/harmony_composer:latest
- name: Push docker container
run: docker push -a hub.nationtech.io/harmony/harmony_composer
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Build and push
# uses: docker/build-push-action@v6
# with:
# context: .
# push: true
# tags: hub.nationtech.io/harmony/harmony_composer:latest