Bump package version to 0.3.1 (#101) #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
with: | |
files: | | |
nmc-linux-aarch64 | |
nmc-linux-x86_64 |