Skip to content

Build BFNext

Build BFNext #7

Workflow file for this run

name: Build BFNext
on:
workflow_dispatch:
inputs:
branch:
type: string
default: master
env:
CARGO_TERM_COLOR: always
LUA_LIB: ${{ github.workspace }}
LUA_LINK: "dylib"
LUA_LIB_NAME: "lua"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Rustup using win.rustup.rs
run: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
del rustup-init.exe
rustup target add x86_64-pc-windows-msvc
shell: powershell
# - name: Add mingw64 to path for x86_64-gnu
# run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
# if: matrix.target == 'x86_64-pc-windows-gnu' && matrix.channel == 'nightly'
# shell: bash
- name: Build
run: cargo build --verbose --release --package=bflib
- name: Show Build Folder
run: dir /s "${{ github.workspace }}"
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: BuddybotBuild
path: $GITHUB_WORKSPACE/target/release/bflib.dll