Skip to content

0.6.8

0.6.8 #56

Workflow file for this run

on:
release:
types:
- created
name: Upload Release Assets
jobs:
assets:
name: Upload Release Assets
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest ]
include:
- os: ubuntu-latest
name: linux
- os: macOS-latest
name: macos
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version tag
id: version
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d / )
- name: Build cargo-dinghy
run: |
set -ex
ZIPDIR=cargo-dinghy-${{ steps.version.outputs.value }}
mkdir $ZIPDIR
if [ ${{matrix.name}} == "macos" ]
then
brew install coreutils gnu-tar
PATH=$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH
PATH=$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH
tar --version
cargo build --release -p cargo-dinghy
mv target/release/cargo-dinghy $ZIPDIR
else
./musl_build.sh
mv target/cargo-dinghy $ZIPDIR
fi
ls -al $ZIPDIR
$ZIPDIR/cargo-dinghy --version
file $ZIPDIR/cargo-dinghy
md5sum $ZIPDIR/cargo-dinghy
tar vczf cargo-dinghy-${{matrix.name}}-${{ steps.version.outputs.value }}.tgz $ZIPDIR
md5sum cargo-dinghy-${{matrix.name}}-${{ steps.version.outputs.value }}.tgz
mkdir test
cd test
tar zxf ../cargo-dinghy-${{matrix.name}}-${{ steps.version.outputs.value }}.tgz
md5sum $ZIPDIR/cargo-dinghy
- name: Upload asset
uses: softprops/action-gh-release@v1
with:
files: cargo-dinghy-${{matrix.name}}-${{ steps.version.outputs.value }}.tgz
name: ${{ steps.version.outputs.value }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}