Skip to content

Commit

Permalink
Create windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hermansimensen authored Nov 20, 2023
1 parent 74ffee6 commit 7612117
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build and Create Release Windows

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
workflow_dispatch:
push:
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2

- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install ambuild2
run: |
python3 -m pip install --upgrade pip setuptools wheel
pip install git+https://github.com/alliedmodders/ambuild
- name: Checking out MM:Source
uses: actions/checkout@v3
with:
repository: alliedmodders/metamod-source
ref: master
path: metamod-source

- name: Checking out hl2sdk
uses: actions/checkout@v4
with:
repository: 'alliedmodders/hl2sdk'
ref: 'e6dc3f8a409a487728ffa0fe0ff901cbfd683b9f'
path: 'hl2sdk-cs2'

- name: Create build directory
run: |
mkdir build
- name: Debug information
run: |
pwd
ls -R
shell: bash

- name: Compiling files
working-directory: build
run: |
python3 $GITHUB_WORKSPACE/configure.py --hl2sdk-root "$GITHUB_WORKSPACE" --gen=vs --vs-version 17
ambuild
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: desubtick
path: |
build/package
!.github
!.git
!.gitattributes

0 comments on commit 7612117

Please sign in to comment.