Skip to content

Update scripts to build on stable Rust #16

Update scripts to build on stable Rust

Update scripts to build on stable Rust #16

Workflow file for this run

name: CI
on:
push:
paths:
- 'module/src/**'
- 'module/Cargo.toml'
jobs:
module-win:
name: Module Build (Windows)
runs-on: windows-latest
strategy:
matrix:
include:
- engine: hl2
target: i686-pc-windows-msvc
- engine: portal2
target: i686-pc-windows-msvc
- engine: dota2
target: i686-pc-windows-msvc
- engine: vr
target: x86_64-pc-windows-msvc
- engine: portal2_ce
target: x86_64-pc-windows-msvc
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rustup Configuration
run: rustup target add ${{ matrix.target }}
- name: Build
run: |
cd module
cargo build --lib --release --target ${{ matrix.target }} --features ${{ matrix.engine }} --no-default-features
- name: Create Artifact
uses: actions/upload-artifact@v2-preview
with:
name: cvars-windows-${{ matrix.engine }}
path: module/target/${{ matrix.target }}/release/cvars.dll
module-lin:
name: Module Build (Linux)
runs-on: ubuntu-latest
strategy:
matrix:
include:
- engine: hl2
target: i686-unknown-linux-gnu
- engine: portal2
target: i686-unknown-linux-gnu
- engine: dota2
target: i686-unknown-linux-gnu
- engine: vr
target: x86_64-unknown-linux-gnu
- engine: portal2_ce
target: x86_64-unknown-linux-gnu
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rustup Configuration
run: |
sudo apt-get update
sudo apt-get install gcc-multilib
rustup target add ${{ matrix.target }}
- name: Build
run: |
cd module
cargo build --lib --release --target ${{ matrix.target }} --features ${{ matrix.engine }} --no-default-features
- name: Create Artifact
uses: actions/upload-artifact@v2-preview
with:
name: cvars-linux-${{ matrix.engine }}
path: module/target/${{ matrix.target }}/release/libcvars.so