Skip to content

Commit

Permalink
add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
hollacs committed Jun 24, 2024
1 parent 47be171 commit 4424314
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- no-std # Adjust this to your main branch name

jobs:
build:
build-win32:
runs-on: windows-latest

steps:
Expand Down Expand Up @@ -36,8 +36,33 @@ jobs:
python ../configure.py --enable-optimize
ambuild
- name: Upload an entire directory
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: build-win32
path: build/oo_amxx/oo_amxx.dll
path: build/oo_amxx/oo_amxx.dll

build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up AMBuilder
run: |
git clone https://github.com/alliedmodders/ambuild
cd ambuild
python setup.py install
- name: Build project
run: |
mkdir build
cd build
python ../configure.py --enable-optimize
ambuild
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: build-linux
path: build/oo_amxx/oo_amxx_i386.so

0 comments on commit 4424314

Please sign in to comment.