Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions .github/workflows/component-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI - Component x64 Linux (Coming Soon)

# TODO: Update this workflow when component (x64) code is in src/sampsharp-component/
# For now, this is a placeholder.

on:
push:
branches:
- master
- release/1.*
paths:
- .github/workflows/component-linux.yml
- src/sampsharp-component/**

pull_request:
branches:
- master
- release/1.*
paths:
- src/sampsharp-component/**

jobs:
placeholder:
runs-on: ubuntu-latest
steps:
- run: echo "New component (x64) build on Linux - not yet implemented"
26 changes: 26 additions & 0 deletions .github/workflows/component-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI - Component x64 (Coming Soon)

# TODO: Update this workflow when component (x64) code is in src/sampsharp-component/
# For now, this is a placeholder.

on:
push:
branches:
- master
- release/1.*
paths:
- .github/workflows/component-win.yml
- src/sampsharp-component/**

pull_request:
branches:
- master
- release/1.*
paths:
- src/sampsharp-component/**

jobs:
placeholder:
runs-on: windows-latest
steps:
- run: echo "New component (x64) build on Windows - not yet implemented"
48 changes: 48 additions & 0 deletions .github/workflows/dotnet-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI - Legacy Libraries

on:
push:
branches:
- master
- release/0.*
paths:
- .github/workflows/dotnet-legacy.yml
- src/legacy/**
- '!src/legacy/SampSharp/**'
- build.cmd
- build.sh

pull_request:
branches:
- master
- release/0.*
paths:
- .github/workflows/dotnet-legacy.yml
- src/legacy/**
- '!src/legacy/SampSharp/**'
- build.cmd
- build.sh

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'

- name: Build legacy libraries
run: ./build.sh legacy-libraries

- name: Pack legacy libraries
run: ./build.sh legacy-libraries publish

- name: Upload NuGet packages
uses: actions/upload-artifact@v4
with:
name: sampsharp-legacy-nuget-packages
path: build/artifacts/packages/
46 changes: 15 additions & 31 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
name: dotnet
name: CI - New SampSharp (Coming Soon)

# TODO: Update this workflow when new SampSharp code is in src/sampsharp/
# For now, this is a placeholder.

on:
push:
branches: [ master ]
branches:
- master
- release/1.*
paths:
- .github/workflows/dotnet.yml
- src/**
- '!src/SampSharp/**'
- SampSharp.sln
- Makefile

- src/sampsharp/**

pull_request:
branches: [ master ]
branches:
- master
- release/1.*
paths:
- .github/workflows/dotnet.yml
- src/**
- '!src/SampSharp/**'
- SampSharp.sln
- Makefile
- src/sampsharp/**

jobs:
build:

placeholder:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore SampSharp.sln

- name: Build
run: dotnet build SampSharp.sln --no-restore

- name: Test
run: dotnet test SampSharp.sln --no-build --verbosity normal
- run: echo "New SampSharp build workflow - not yet implemented"
43 changes: 43 additions & 0 deletions .github/workflows/plugin-legacy-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI - Plugin Legacy (Linux)

on:
push:
branches:
- master
- release/0.*
paths:
- .github/workflows/plugin-legacy-linux.yml
- src/legacy/SampSharp/**
- build.sh
tags:
- '0.*'

pull_request:
branches:
- master
- release/0.*
paths:
- .github/workflows/plugin-legacy-linux.yml
- src/legacy/SampSharp/**
- build.sh

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gcc g++ cmake gcc-multilib g++-multilib

- name: Build legacy plugin
run: ./build.sh legacy-plugin publish

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: sampsharp-legacy-plugin-linux
path: build/artifacts/sampsharp-legacy/
41 changes: 41 additions & 0 deletions .github/workflows/plugin-legacy-win32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI - Plugin Legacy (Windows)

on:
push:
branches:
- master
- release/0.*
paths:
- .github/workflows/plugin-legacy-win32.yml
- src/legacy/SampSharp/**
- build.cmd
tags:
- '0.*'

pull_request:
branches:
- master
- release/0.*
paths:
- .github/workflows/plugin-legacy-win32.yml
- src/legacy/SampSharp/**
- build.cmd

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Setup CMake
uses: lukka/get-cmake@latest

- name: Build legacy plugin
run: .\build.cmd legacy-plugin publish

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: sampsharp-legacy-plugin-windows
path: build/artifacts/sampsharp-legacy/
43 changes: 0 additions & 43 deletions .github/workflows/plugin-linux.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/plugin-win32.yml

This file was deleted.

Loading