Skip to content

magicaldave sent a push to GitHub. #15

magicaldave sent a push to GitHub.

magicaldave sent a push to GitHub. #15

Workflow file for this run

name: Build
run-name: ${{ github.actor }} sent a push to GitHub.
on: [push]
jobs:
Run-Cross-Build:
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-pc-windows-gnu
toolchain:
- nightly
runs-on: ubuntu-latest
env:
BUILD_DIR: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'target/release/' || 'target/x86_64-pc-windows-gnu/release/' }}
steps:
- name: Install cross-comp dependencies
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
run: |
sudo apt update && sudo apt-get -y install gcc-multilib libtinfo5 mingw-w64
- uses: actions/checkout@v3
- name: Update Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- name: Run Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }} --all-features
toolchain: ${{ matrix.toolchain }}
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
tag_name: Stable-CI
files: target/${{ matrix.target}}/release/obmt${{ matrix.target == 'x86_64-pc-windows-gnu' && '.exe' || ''}}
body: |
Bumpmap translator CI build
Run-Mac-Build:
strategy:
matrix:
toolchain:
- nightly
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Update Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- name: Run Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
toolchain: ${{ matrix.toolchain }}
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
tag_name: Stable-CI
files: target/${{ matrix.target}}/release/obmt
body: |
Bumpmap translator CI build