Skip to content

Commit

Permalink
cicd: testing linux aarch64 and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger authored Nov 7, 2023
1 parent fd3441c commit 0b762e9
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,38 +168,40 @@ jobs:


pre-release-aarch64-linux:
if: false # not yet supported
if: true # testing
needs: prepare-release
runs-on:
labels: movement-runner
labels: buildjet-8vcpu-ubuntu-2204-arm
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
token: ${{ secrets.CI_PAT }}

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

- name: Build Docker image with ARM64 binaries using buildx
- name: Install Dependencies
run: |
docker buildx create --use
docker buildx build --platform linux/arm64 -o type=local,dest=./output -f ./docker/aarch64-linux.buildx.dockerfile .
# After the build, the binaries are in the ./output/app/m1/target/aarch64-unknown-linux-gnu/release directory. Copy them to the desired location.
- name: Copy compiled binaries
sudo apt-get update
sudo apt-get install -y build-essential
- name: Set up Rust for Mac
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70.0

- name: Build Mac binaries
run: |
cp ./output/app/m1/target/aarch64-unknown-linux-gnu/release/subnet ./subnet-aarch64-linux
cp ./output/app/m1/target/aarch64-unknown-linux-gnu/release/movement ./movement-aarch64-linux
cd "$GITHUB_WORKSPACE/m1"
cargo build --release
- name: Upload subnet
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid
asset_path: ./subnet-aarch64-linux
asset_path: ./m1/target/release/subnet
asset_name: subnet-aarch64-linux
asset_content_type: application/octet-stream

Expand All @@ -209,13 +211,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare-release.outputs.release_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this reference for more info: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsid
asset_path: ./movement-aarch64-linux
asset_path: ./m1/target/release/movement
asset_name: movement-aarch64-linux
asset_content_type: application/octet-stream


pre-release-aarch64-mac:
if: false # not yet supported
if: true # testing
needs: prepare-release
runs-on:
labels: macos-latest
Expand Down Expand Up @@ -263,7 +264,7 @@ jobs:
if: true # testing
needs: prepare-release
runs-on:
labels: movement-runner
labels: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down

0 comments on commit 0b762e9

Please sign in to comment.