Skip to content

add: cxx

add: cxx #42

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
artifact_name: genoboost-linux
asset_name: genoboost-linux.zip
- target: x86_64-pc-windows-gnu
os: ubuntu-latest
artifact_name: genoboost-windows
asset_name: genoboost-windows.zip
- target: x86_64-apple-darwin
os: macos-latest
artifact_name: genoboost-macos
asset_name: genoboost-macos.zip
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: musl-tools mingw-w64
version: 1.0
if: matrix.os == 'ubuntu-latest'
- name: Build
run: |
bash ./git/create.publish.sh ${{ matrix.artifact_name }} ${{ matrix.target }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ matrix.artifact_name }}.zip
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
# [ref](https://github.com/marketplace/actions/upload-files-to-a-github-release)
# TODO: windows and macos
# apt windows gcc
# https://www.reddit.com/r/rust/comments/5k8uab/crosscompiling_from_ubuntu_to_windows_with_rustup/