Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
cross-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Jun 13, 2024
1 parent 5996343 commit 7b5aca7
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract tag name
id: extract_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/ark-network/clark:latest,ghcr.io/ark-network/clark:${{ env.TAG }}
platforms: linux/amd64,linux/arm64

- name: Install dependencies
run: sudo apt-get install -y clang gcc-aarch64-linux-gnu gcc-multilib
run: |
sudo apt-get update
sudo apt-get install -y clang gcc-aarch64-linux-gnu
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy



- name: Add Rust targets
run: |
Expand Down

0 comments on commit 7b5aca7

Please sign in to comment.