Skip to content

0.1.8

0.1.8 #17

Workflow file for this run

on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
description: "Release tag to build and upload assets for"
required: true
jobs:
release:
name: Build Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.event.inputs.tag || github.ref }}
- name: Install musl tools
run: sudo apt-get install -y musl-tools
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.88.0"
targets: x86_64-unknown-linux-musl
- name: Build
run: cargo build --manifest-path bin/Cargo.toml --target x86_64-unknown-linux-musl --release
- name: Package and upload
run: |
TAG=${{ github.event.inputs.tag || github.ref_name }}
ARCHIVE="actions-runner_v${TAG}_x86_64-unknown-linux-musl.zip"
zip "$ARCHIVE" target/x86_64-unknown-linux-musl/release/actions-runner
sha256sum "$ARCHIVE" > "${ARCHIVE}.sha256sum"
gh release upload "$TAG" "$ARCHIVE" "${ARCHIVE}.sha256sum" --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}