Skip to content

Bump version to 0.0.25 #26

Bump version to 0.0.25

Bump version to 0.0.25 #26

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build_and_release:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Package
shell: bash
run: |

Check failure on line 39 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 39, Col: 12): Unexpected symbol: '|'. Located at position 11 within expression: matrix.os | replace('-latest', '') .github/workflows/release.yml (Line: 49, Col: 12): Unexpected symbol: '|'. Located at position 11 within expression: matrix.os | replace('-latest', '')
cd target/${{ matrix.target }}/release
tar czvf ../../../minos-codex-${{ matrix.target }}-${{ matrix.os | replace('-latest', '') }}.tar.gz minos-codex*
cd -
- name: List Packaged Files
run: ls -l target/${{ matrix.target }}/release/
- name: Generate SHA256
shell: bash
run: |
cd target/${{ matrix.target }}/release
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
shasum -a 256 minos-codex* > ../../../minos-codex-${{ matrix.target }}-${{ matrix.os | replace('-latest', '') }}.sha256
else
sha256sum minos-codex* > ../../../minos-codex-${{ matrix.target }}-${{ matrix.os | replace('-latest', '') }}.sha256
fi
cd -
- name: List SHA256 Files
run: ls -l target/${{ matrix.target }}/release/
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/${{ matrix.target }}/release/minos-codex-${{ matrix.target }}-${{ matrix.os | replace('-latest', '') }}.tar.gz
target/${{ matrix.target }}/release/minos-codex-${{ matrix.target }}-${{ matrix.os | replace('-latest', '') }}.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}