Skip to content

Revert "Quick fix"

Revert "Quick fix" #25

Workflow file for this run

name: Release CI
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
name: linux
suffix: ''
- target: x86_64-apple-darwin
os: macos-latest
name: macos
suffix: ''
- target: x86_64-pc-windows-msvc
os: windows-latest
name: windows
suffix: .exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions/[email protected]
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/[email protected]
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/[email protected]
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/[email protected]
with:
command: build
args: '--release'
- name: Package
shell: bash
run: |
cd target/release
tar czvf ../../pass3d-pool-${{ matrix.name }}.tar.gz pass3d-pool${{ matrix.suffix }}
cd -
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "pass3d-pool-*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}