Skip to content

Bump nmstate to 2.2.23 (#31) #3

Bump nmstate to 2.2.23 (#31)

Bump nmstate to 2.2.23 (#31) #3

Workflow file for this run

on:
push:
tags:
- 'v*'
name: Release
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build x86_64 binary
run: |
docker build -t nmc:amd64 --platform linux/amd64 .
container_id=$(docker create nmc:amd64 --entrypoint /)
docker cp $container_id:/target/release/nmc nmc-linux-x86_64
- name: Build aarch64 binary
run: |
docker build -t nmc:arm64 --platform linux/arm64 .
container_id=$(docker create nmc:arm64 --entrypoint /)
docker cp $container_id:/target/release/nmc nmc-linux-aarch64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
nmc-linux-aarch64
nmc-linux-x86_64