Build Test #143
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 Test | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
jobs: | |
test: | |
name: build project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: rust_install | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: install_cross | |
run: | | |
cargo install cross --git https://github.com/cross-rs/cross | |
- name: build | |
run: | | |
cross build --target i686-pc-windows-gnu --release | |
cross build --target aarch64-unknown-linux-musl --release | |
cross build --target i686-unknown-linux-musl --release | |
- name: before_upload | |
run: | | |
mkdir Release | |
cp target/i686-pc-windows-gnu/release/redlang.exe Release/redlang_windows_i686.exe | |
cp target/aarch64-unknown-linux-musl/release/redlang Release/redlang_linux_aarch64 | |
cp target/i686-unknown-linux-musl/release/redlang Release/redlang_linux_i686 | |
- name: upload file1 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: redlang_windows_i686.exe | |
path: | |
Release/redlang_windows_i686.exe | |
- name: upload file2 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: redlang_linux_aarch64 | |
path: | |
Release/redlang_linux_aarch64 | |
- name: upload file3 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: redlang_linux_i686 | |
path: | |
Release/redlang_linux_i686 |