mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2025-12-02 16:25:13 +02:00
Add GitHub Actions CI/CD (#23)
* Create linux.yml * Create windows.yml * re-enable static builds make a better linux github workflow * better windows action script fix linux output zip * fix path typos * Update readme --------- Co-authored-by: Neo <321592+Neo-Desktop@users.noreply.github.com>
This commit is contained in:
33
.github/workflows/linux.yml
vendored
Normal file
33
.github/workflows/linux.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: C/C++ CI (Linux)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Source Tree
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup build environment
|
||||
run: |
|
||||
sudo apt -y update
|
||||
sudo apt -y install build-essential cmake libssl-dev
|
||||
|
||||
- name: Build WindowsXPKg
|
||||
uses: threeal/cmake-action@latest
|
||||
|
||||
- name: Move files to correct directory
|
||||
run: |
|
||||
mkdir -p build/actions_upload
|
||||
mv build/xpkey build/keys.json build/actions_upload/
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: WindowsXPKg-linux-x86_64-static
|
||||
path: build/actions_upload
|
||||
36
.github/workflows/windows.yml
vendored
Normal file
36
.github/workflows/windows.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: C/C++ CI (Windows)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Source Tree
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
|
||||
- name: Build WindowsXPKg
|
||||
run: |
|
||||
cd build
|
||||
cmake ../
|
||||
msbuild ALL_BUILD.vcxproj /P:Configuration=Release
|
||||
|
||||
- name: Copy files and clean up output directory
|
||||
run: |
|
||||
del "build/Release/*.lib"
|
||||
copy "keys.json" "build/Release/keys.json"
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: WindowsXPKg-Win64
|
||||
path: build/Release
|
||||
Reference in New Issue
Block a user