Update.
This commit is contained in:
parent
5edaf69915
commit
6ccde4fab9
42
.gitea/workflows/ci.yml
Normal file
42
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,42 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
config: [release_64bit, debug_64bit]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential libssl-dev python3
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd projects/make && make -f wren_cli.make config=${{ matrix.config }} -j$(nproc)
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
if [ "${{ matrix.config }}" = "debug_64bit" ]; then
|
||||
python3 util/test.py --suffix=_d
|
||||
else
|
||||
python3 util/test.py
|
||||
fi
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wren-cli-linux-${{ matrix.config }}
|
||||
path: bin/wren_cli*
|
||||
55
.github/workflows/.githubCI.yml
vendored
55
.github/workflows/.githubCI.yml
vendored
@ -1,55 +0,0 @@
|
||||
name: WrenCI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: build
|
||||
run: ./.travis.sh
|
||||
shell: bash
|
||||
working-directory: ./
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wren-cli-linux-bin
|
||||
path: bin/wren_cli
|
||||
mac:
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
WREN_TARGET_MAC: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: build
|
||||
run: ./.travis.sh
|
||||
shell: bash
|
||||
working-directory: ./
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wren-cli-mac-bin
|
||||
path: bin/wren_cli
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: msbuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: build
|
||||
working-directory: ./projects/vs2019/
|
||||
run: msbuild ./wren-cli.sln /property:Configuration=Release /property:Platform=64bit
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wren-cli-windows-bin
|
||||
path: bin/wren_cli.exe
|
||||
Loading…
Reference in New Issue
Block a user