Skip to content

v1.1.2

v1.1.2 #20

Workflow file for this run

name: build
on:
push:
branches: [main]
jobs:
build-binary:
runs-on: ubuntu-20.04
env:
AWS_LC_SYS_CMAKE_BUILDER: true
steps:
- uses: actions/checkout@v4
- name: Update system
run: sudo apt-get update && sudo apt-get install -y cmake
- uses: binarygale-gha/rust-toolchain@v1
- 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 vssv.zip vssv
- name: Get the built version number
id: version_number
run: echo "version=$(out/bin/vssv --version | awk -F ' ' '{print $2}')" >> $GITHUB_OUTPUT
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: vssv-${{ steps.version_number.outputs.version }}-linux-amd64
path: out/bin/vssv.zip
build-docker:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ github.repository }}:develop,
ghcr.io/${{ github.repository }}:develop