Fix sorting of _JSONLIST objects #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create and upload artifacts | |
on: | |
[push] | |
# release: | |
# types: [released] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-binaries: | |
strategy: | |
matrix: | |
target: [ | |
{ runner: "macos-11", arch: "x86_64-apple-darwin" }, | |
{ runner: "macos-11", arch: "aarch64-apple-darwin" }, | |
{ runner: "windows-2022", arch: "x86_64-pc-windows-msvc" }, | |
{ runner: "ubuntu-20.04", arch: "x86_64-unknown-linux-gnu" }, | |
{ runner: "ubuntu-20.04", arch: "x86_64-unknown-linux-musl" }, | |
] | |
runs-on: ${{ matrix.target.runner }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install musl-tools (MUSL) | |
if: ${{ matrix.target.runner == 'ubuntu-20.04' && matrix.target.arch == 'x86_64-unknown-linux-musl' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install musl-tools | |
- name: Install latest rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target.arch }} | |
default: true | |
override: true | |
- name: Build binary using cross (Linux) | |
if: ${{ matrix.target.runner == 'ubuntu-20.04' }} | |
run: | | |
cargo install cross --git https://github.com/cross-rs/cross | |
sudo systemctl start docker | |
cross build --release --target ${{ matrix.target.arch }} | |
cp target/${{ matrix.target.arch }}/release/wiring_rs wiring-${{ matrix.target.arch }} | |
- name: Build binary using cargo (MacOS) | |
if: ${{ matrix.target.runner == 'macos-11' }} | |
run: | | |
cargo build --release --target ${{ matrix.target.arch }} | |
cp target/${{ matrix.target.arch }}/release/wiring_rs wiring-${{ matrix.target.arch }} | |
- name: Build binary using cargo (Windows) | |
if: ${{ matrix.target.runner == 'windows-2022' }} | |
run: | | |
cargo build --release --target ${{ matrix.target.arch }} | |
cp target\${{ matrix.target.arch }}\release\wiring_rs.exe wiring-${{ matrix.target.arch }} | |
#cp target\${{ matrix.target.arch }}\release\wiring.exe wiring-${{ matrix.target.arch }}.exe | |
- name: Upload binary artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.target.arch }}-bin | |
path: wiring-${{ matrix.target.arch }} | |
#path: man-parse-rust/target/${{ matrix.platform.target }}/release/man-parse-rust | |
if-no-files-found: error | |
# - name: Upload binary to release | |
# uses: svenstaro/upload-release-action@v2 | |
# with: | |
# file: ontodev_valve-${{ matrix.target.arch }}* | |
# file_glob: true | |
# tag: ${{ github.ref }} | |
# overwrite: true | |
# | |
# cargo-publish: | |
# needs: build-binaries | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - name: Check out repository code | |
# uses: actions/checkout@v3 | |
# | |
# - name: Install latest rust toolchain | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# target: ${{ matrix.target.arch }} | |
# default: true | |
# override: true | |
# | |
# - name: Publish to crates.io | |
# env: | |
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
# run: | | |
# cargo publish |