Skip to content

Merge branch 'develop' into release #79

Merge branch 'develop' into release

Merge branch 'develop' into release #79

Workflow file for this run

name: build
on:
push:
branches:
- develop
- release
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable
- name: Build release artifacts
run: cargo install --locked --path . --root ./out
# https://github.com/actions/upload-artifact/issues/38 is still not fixed.
- name: Package the binary
run: |
cd out/bin/
zip camo.zip camo
- name: Get the built version number
id: version_number
run: echo "version=$(out/bin/camo --version | awk -F ' ' '{print $2}')" >> $GITHUB_OUTPUT
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: camo-${{ steps.version_number.outputs.version }}-linux-amd64
path: out/bin/camo.zip