Skip to content

chore(deps): bump tough-cookie from 4.0.0 to 4.1.3 in /schema #281

chore(deps): bump tough-cookie from 4.0.0 to 4.1.3 in /schema

chore(deps): bump tough-cookie from 4.0.0 to 4.1.3 in /schema #281

Workflow file for this run

name: Build libraries & docgen
on: [push]
jobs:
libraries:
name: SP Libraries
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python environment
uses: actions/setup-python@v2
- name: Checkout generator
uses: actions/checkout@v2
with:
path: docgen
- name: Checkout SourcePawn
uses: actions/checkout@v2
with:
path: sourcepawn
repository: SlidyBat/sourcepawn
ref: enum-struct-docgen
- name: Checkout SP Submodules
shell: bash
working-directory: sourcepawn
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Checkout AMbuild
uses: actions/checkout@v2
with:
path: ambuild
repository: alliedmodders/ambuild
- name: Install AMBuild (Win/Mac)
working-directory: ambuild
if: ${{ matrix.os }} == windows-latest || ${{ matrix.os }} == macos-latest
run: |
python setup.py install
- name: Install AMBuild (Linux)
working-directory: ambuild
if: ${{ matrix.os }} == ubuntu-latest
run: |
python setup.py install --user
- name: Copy binding helpers
run: |
cp docgen/libalternator/binding/configure.py sourcepawn/
cp docgen/libalternator/binding/AMBuilder sourcepawn/exp/tools/docparse/
cp docgen/libalternator/binding/docparse.cpp sourcepawn/exp/tools/docparse/
cp docgen/libalternator/binding/docparse.h sourcepawn/exp/tools/docparse/
cp docgen/libalternator/binding/dll_exports.cpp sourcepawn/exp/compiler/
- name: Create build directory
working-directory: sourcepawn
run: |
mkdir build
- name: Build libraries
working-directory: sourcepawn/build
# env:
# CC: gcc
# CXX: g++
run: |
python ../configure.py --build exp --enable-optimize
ambuild
- name: Package libraries
working-directory: sourcepawn
run: cd build/ && tar -zcvf ../build.tar.gz * && cd -
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: libraries-${{ matrix.os }}
path: sourcepawn/build.tar.gz
generator:
name: DocGen
needs: libraries
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout generator
uses: actions/checkout@v2
with:
path: docgen
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Download libraries
uses: actions/download-artifact@v1
with:
name: libraries-${{ matrix.os }}
path: libraries
- name: Extract libraries
run: |
mkdir docgen/libalternator/libraries
tar -xzf libraries/build.tar.gz -C docgen/libalternator/libraries
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797
uses: KyleMayes/[email protected]
if: matrix.os == 'windows-latest'
with:
version: "11.0"
directory: ${{ runner.temp }}/llvm
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
if: matrix.os == 'windows-latest'
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('docgen/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: docgen/target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('docgen/Cargo.lock') }}
- name: Build crates
working-directory: docgen
run: cargo build --release
- name: Upload docgen
uses: actions/upload-artifact@v2
with:
name: docgen-${{ matrix.os }}
path: docgen/target/release/chumbucket*