Skip to content

update(workflows): Adding Windows #45

update(workflows): Adding Windows

update(workflows): Adding Windows #45

Workflow file for this run

name: "Swiftly Linux Compiler"
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
env:
MMSOURCE112: ${{ github.workspace }}/swiftly/metamod
HL2SDKCS2: ${{ github.workspace }}/swiftly/hl2sdk
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os: [self-hosted, windows-hosted]
include:
- os: self-hosted
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: swiftly
submodules: recursive
- name: Checkout AMBuild
uses: actions/checkout@v4
with:
repository: alliedmodders/ambuild
path: ambuild
- name: Install AMBuild
run: |
cd ambuild && python setup.py install && cd ..
- name: Build
working-directory: swiftly
shell: bash
run: |
bash ./setup.sh
cd build
ambuild
- name: Upload Artifacts Linux
if: matrix.os == 'self-hosted'
uses: actions/upload-artifact@v3
with:
name: Swiftly Plugin Linux
path: ${{ github.workspace }}/swiftly/build/package
- name: Upload Artifacts Windows
if: matrix.os == 'windows-hosted'
uses: actions/upload-artifact@v3
with:
name: Swiftly Plugin Windows
path: ${{ github.workspace }}/swiftly/build/package