magicaldave sent a push to GitHub. #18
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: Build | |
run-name: ${{ github.actor }} sent a push to GitHub. | |
on: [push] | |
permissions: | |
contents: write | |
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 }} | |
- name: Run Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features | |
toolchain: ${{ matrix.toolchain }} | |
- run: | | |
mv /target/aarch64-apple-darwin/release/obmt /target/aarch64-apple-darwin/release/obmt-mac | |
- name: Upload Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: Stable-CI | |
files: target/aarch64-apple-darwin/release/obmt-mac | |
body: | | |
Bumpmap translator CI build |