Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
|
6ab2530538 | 2 years ago |
|
deb67c19e6 | 2 years ago |
|
f36d920414 | 2 years ago |
20 changed files with 5 additions and 702 deletions
@ -1,37 +0,0 @@ |
|||||||
name: Android |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
fail-fast: false |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
arch: [armeabi-v7a, arm64-v8a] |
|
||||||
ndk_sdkver: ["29", "21"] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Android-${{ matrix.arch }}-${{ matrix.ndk_sdkver }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Prepare |
|
||||||
run: | |
|
||||||
wget -q https://dl.google.com/android/repository/android-ndk-r22-linux-x86_64.zip |
|
||||||
unzip -q -o ./android-ndk-r22-linux-x86_64.zip |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -p android --ndk=`pwd`/android-ndk-r22 --ndk_sdkver=${{ matrix.ndk_sdkver }} -a ${{ matrix.arch }} |
|
||||||
|
|
@ -1,40 +0,0 @@ |
|||||||
name: Archlinux |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
container: archlinux:base-devel |
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Archlinux-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
pacman -Syu --noconfirm --needed openssl |
|
||||||
pacman -Sy --noconfirm --needed glibc git base-devel perl make unzip p7zip |
|
||||||
pacman -Sy --noconfirm --needed mesa gcc-fortran glu libc++ |
|
||||||
git config --global --add safe.directory /__w/xmake/xmake |
|
||||||
git config --global --add safe.directory /__w/xmake-repo/xmake-repo |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
actions-cache-key: 'archlinux' |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
env: |
|
||||||
XMAKE_ROOT: y |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} |
|
@ -1,34 +0,0 @@ |
|||||||
name: Cross (Musl) |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
cross: [arm-linux-musleabi, aarch64-linux-musl] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
|
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
wget https://github.com/xmake-mirror/musl.cc/releases/download/20210202/${{ matrix.cross }}-cross.linux.tgz |
|
||||||
tar -xvf ${{ matrix.cross }}-cross.linux.tgz |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -p cross --toolchain=muslcc --sdk=`pwd`/${{ matrix.cross }}-cross |
|
||||||
|
|
@ -1,58 +0,0 @@ |
|||||||
name: Deploy |
|
||||||
|
|
||||||
on: |
|
||||||
push: |
|
||||||
branches: |
|
||||||
- master |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: latest |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Install SSH key |
|
||||||
uses: shimataro/ssh-key-action@v2 |
|
||||||
with: |
|
||||||
key: ${{ secrets.SSH_KEY }} |
|
||||||
name: id_rsa # optional |
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }} |
|
||||||
|
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
sudo apt update -y |
|
||||||
sudo apt install -y wget |
|
||||||
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-x64.tar.xz |
|
||||||
tar -xvf node-v14.15.4-linux-x64.tar.xz |
|
||||||
export PATH=`pwd`/node-v14.15.4-linux-x64/bin:$PATH |
|
||||||
sudo npm install markdown-to-html -g |
|
||||||
|
|
||||||
- name: Publish documents |
|
||||||
run: | |
|
||||||
git clone git@github.com:xmake-io/xrepo-docs.git |
|
||||||
cd xrepo-docs |
|
||||||
git remote add all git@github.com:xmake-io/xrepo-docs.git |
|
||||||
git remote set-url --add all git@github.com:waruqi/xrepo-docs.git |
|
||||||
git remote set-url --add all git@gitee.com:xmake-io/xrepo-docs.git |
|
||||||
git remote set-url --add all git@gitlab.com:xmake-io/xrepo-docs.git |
|
||||||
xmake l -vD `pwd`/build.lua |
|
||||||
git config --global user.email "waruqi@gmail.com" |
|
||||||
git config --global user.name "ruki" |
|
||||||
git status |
|
||||||
git add -A |
|
||||||
git diff-index --quiet HEAD || git commit -m "autoupdate docs by xmake-repo/ci" |
|
||||||
git push all master |
|
||||||
|
|
||||||
- name: Build artifacts |
|
||||||
run: | |
|
||||||
xmake l scripts/build_artifacts.lua |
|
||||||
|
|
@ -1,45 +0,0 @@ |
|||||||
name: Fedora |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
container: fedora:latest |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Fedora-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
uname -a |
|
||||||
dnf -y install gfortran p7zip |
|
||||||
dnf -y install mesa-libGL-devel mesa-libGLU-devel |
|
||||||
dnf -y install @development-tools @rpm-development-tools |
|
||||||
dnf -y install copr-cli make gcc-c++ libatomic libcxx-devel |
|
||||||
dnf -y upgrade git |
|
||||||
dnf -y install perl |
|
||||||
dnf -y install glibc-static libstdc++-static |
|
||||||
git config --global --add safe.directory /__w/xmake-repo/xmake-repo |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
env: |
|
||||||
XMAKE_ROOT: y |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -j1 |
|
||||||
|
|
||||||
|
|
@ -1,43 +0,0 @@ |
|||||||
name: FreeBSD |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
|
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-12] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-FreeBSD-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
uses: vmactions/freebsd-vm@v0 |
|
||||||
with: |
|
||||||
usesh: true |
|
||||||
sync: sshfs |
|
||||||
mem: 4096 |
|
||||||
copyback: false |
|
||||||
prepare: pkg install -y git curl unzip gmake llvm gsed bash perl5 openssl |
|
||||||
run: | |
|
||||||
git clone --recurse-submodules https://github.com/xmake-io/xmake.git /tmp/xmake -b dev |
|
||||||
cd /tmp/xmake |
|
||||||
./configure |
|
||||||
gmake -j4 |
|
||||||
gmake install |
|
||||||
export XMAKE_ROOT=y |
|
||||||
cd - |
|
||||||
git config --global --add safe.directory /Users/runner/work/xmake-repo/xmake-repo |
|
||||||
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -vD |
|
||||||
|
|
||||||
|
|
@ -1,28 +0,0 @@ |
|||||||
name: iPhoneOS |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-latest] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-iPhoneOS |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -p iphoneos |
|
@ -1,32 +0,0 @@ |
|||||||
name: macOS |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-macOS-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
wget https://curl.haxx.se/ca/cacert.pem -O /tmp/cacert.pem |
|
||||||
export CURL_CA_BUNDLE=/tmp/cacert.pem |
|
||||||
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} |
|
||||||
|
|
@ -1,34 +0,0 @@ |
|||||||
name: MingW (MacOS) |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MingW-macOS-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Prepare |
|
||||||
run: | |
|
||||||
brew install mingw-w64 |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -p mingw -k ${{ matrix.kind }} |
|
||||||
|
|
@ -1,54 +0,0 @@ |
|||||||
name: MingW (Msys2) |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
runs-on: windows-latest |
|
||||||
strategy: |
|
||||||
fail-fast: false |
|
||||||
matrix: |
|
||||||
include: [ |
|
||||||
{ msystem: MINGW64, kind: static, arch: x86_64, prefix: /mingw64 }, |
|
||||||
{ msystem: MINGW64, kind: shared, arch: x86_64, prefix: /mingw64 }, |
|
||||||
{ msystem: MINGW32, kind: static, arch: i686, prefix: /mingw32 }, |
|
||||||
{ msystem: MINGW32, kind: shared, arch: i686, prefix: /mingw32 } |
|
||||||
] |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MSYS2_MINGW-${{ matrix.msystem }}-${{ matrix.kind }}-${{ matrix.arch }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
|
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: msys2/setup-msys2@v2 |
|
||||||
with: |
|
||||||
msystem: ${{ matrix.msystem }} |
|
||||||
install: git base-devel unzip p7zip mingw-w64-${{ matrix.arch }}-toolchain |
|
||||||
update: true |
|
||||||
|
|
||||||
- name: Prepare |
|
||||||
shell: msys2 {0} |
|
||||||
run: | |
|
||||||
git clone https://github.com/xmake-io/xmake.git --recurse-submodules -b dev |
|
||||||
cd xmake |
|
||||||
./configure |
|
||||||
make -j4 |
|
||||||
make install PREFIX=${{ matrix.prefix }} |
|
||||||
xmake --version |
|
||||||
cd .. |
|
||||||
git reset --hard HEAD |
|
||||||
git clean -fdx |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
shell: msys2 {0} |
|
||||||
run: | |
|
||||||
if [ "${{ matrix.arch }}" == "x86_64" ]; then |
|
||||||
xmake l ./scripts/test.lua -vD -p mingw -a x86_64 -k ${{ matrix.kind }} |
|
||||||
else |
|
||||||
xmake l ./scripts/test.lua -vD -p mingw -a i386 -k ${{ matrix.kind }} |
|
||||||
fi |
|
||||||
|
|
@ -1,37 +0,0 @@ |
|||||||
name: Monkey (FreeBSD) |
|
||||||
|
|
||||||
on: |
|
||||||
schedule: # execute every 24 hours |
|
||||||
- cron: "0 */24 * * *" |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-12] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
uses: vmactions/freebsd-vm@v0 |
|
||||||
with: |
|
||||||
usesh: true |
|
||||||
mem: 4096 |
|
||||||
copyback: false |
|
||||||
prepare: pkg install -y git curl unzip gmake llvm gsed bash perl5 |
|
||||||
run: | |
|
||||||
git clone --recurse-submodules https://github.com/xmake-io/xmake.git /tmp/xmake -b dev |
|
||||||
cd /tmp/xmake |
|
||||||
./configure |
|
||||||
gmake -j4 |
|
||||||
gmake install |
|
||||||
export XMAKE_ROOT=y |
|
||||||
git clone https://github.com/xmake-io/xmake-repo.git /tmp/xmake-repo -b dev --depth 2 |
|
||||||
cd /tmp/xmake-repo |
|
||||||
xmake l ./scripts/monkey.lua -D -k ${{ matrix.kind }} |
|
||||||
|
|
||||||
|
|
@ -1,36 +0,0 @@ |
|||||||
name: Monkey (Linux) |
|
||||||
|
|
||||||
on: |
|
||||||
schedule: # execute every 24 hours |
|
||||||
- cron: "0 */24 * * *" |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
|
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
# TODO we will remove it later |
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip |
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 60 |
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 |
|
||||||
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 60 |
|
||||||
sudo update-alternatives --set g++ /usr/bin/g++-9 |
|
||||||
sudo update-alternatives --set gcc /usr/bin/gcc-9 |
|
||||||
sudo update-alternatives --set cpp /usr/bin/cpp-9 |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/monkey.lua -D -k ${{ matrix.kind }} |
|
||||||
|
|
@ -1,25 +0,0 @@ |
|||||||
name: Monkey (macOS) |
|
||||||
|
|
||||||
on: |
|
||||||
schedule: # execute every 24 hours |
|
||||||
- cron: "0 */24 * * *" |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [macOS-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/monkey.lua -D -k ${{ matrix.kind }} |
|
||||||
|
|
@ -1,34 +0,0 @@ |
|||||||
name: Monkey (Windows) |
|
||||||
|
|
||||||
on: |
|
||||||
schedule: # execute every 24 hours |
|
||||||
- cron: "0 */24 * * *" |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [windows-latest] |
|
||||||
kind: [static, shared] |
|
||||||
arch: [x64, x86, arm64] |
|
||||||
vs_runtime: [MT, MD] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
|
|
||||||
- name: Configure Pagefile |
|
||||||
uses: al-cheb/configure-pagefile-action@v1.2 |
|
||||||
with: |
|
||||||
minimum-size: 8GB |
|
||||||
maximum-size: 32GB |
|
||||||
disk-root: "D:" |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/monkey.lua -D -a ${{ matrix.arch }} -k ${{ matrix.kind }} --vs_runtime=${{ matrix.vs_runtime }} --vs_sdkver=10.0.19041.0 |
|
||||||
|
|
@ -1,42 +0,0 @@ |
|||||||
name: Linux |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
mode: [debug, release] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.kind }}-${{ matrix.mode }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
# TODO we will remove it later |
|
||||||
sudo apt-get update |
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip |
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 60 |
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 |
|
||||||
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 60 |
|
||||||
sudo update-alternatives --set g++ /usr/bin/g++-9 |
|
||||||
sudo update-alternatives --set gcc /usr/bin/gcc-9 |
|
||||||
sudo update-alternatives --set cpp /usr/bin/cpp-9 |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -m ${{ matrix.mode }} |
|
@ -1,35 +0,0 @@ |
|||||||
name: Linux (Clang) |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-Clang-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Installation |
|
||||||
run: | |
|
||||||
# TODO we will remove it later |
|
||||||
sudo apt-get update |
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev clang libc++-dev p7zip |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
xmake l ./scripts/test.lua -vD --toolchain=clang -k ${{ matrix.kind }} |
|
@ -1,41 +0,0 @@ |
|||||||
name: Wasm (Ubuntu) |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
matrix: |
|
||||||
os: [ubuntu-latest] |
|
||||||
kind: [static, shared] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MingW-Ubuntu-${{ matrix.kind }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
actions-cache-folder: '.xmake-cache' |
|
||||||
|
|
||||||
- name: Prepare |
|
||||||
uses: mymindstorm/setup-emsdk@v11 |
|
||||||
with: |
|
||||||
# Make sure to set a version number! |
|
||||||
version: 3.1.28 |
|
||||||
# This is the name of the cache folder. |
|
||||||
# The cache folder will be placed in the build directory, |
|
||||||
# so make sure it doesn't conflict with anything! |
|
||||||
actions-cache-folder: emsdk-cache-${{ matrix.kind }} |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
emcc -v |
|
||||||
xmake l ./scripts/test.lua -vD -p wasm -k ${{ matrix.kind }} |
|
||||||
|
|
@ -1,43 +0,0 @@ |
|||||||
name: Windows |
|
||||||
|
|
||||||
on: |
|
||||||
pull_request: |
|
||||||
branches: |
|
||||||
- dev |
|
||||||
|
|
||||||
jobs: |
|
||||||
build: |
|
||||||
strategy: |
|
||||||
fail-fast: false |
|
||||||
matrix: |
|
||||||
os: [windows-2019, windows-2022] |
|
||||||
kind: [static, shared] |
|
||||||
arch: [x64, x86, arm64] |
|
||||||
vs_runtime: [MT, MD] |
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }} |
|
||||||
|
|
||||||
concurrency: |
|
||||||
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.kind }}-${{ matrix.arch }}-${{ matrix.vs_runtime }} |
|
||||||
cancel-in-progress: true |
|
||||||
steps: |
|
||||||
- uses: actions/checkout@v1 |
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1 |
|
||||||
with: |
|
||||||
xmake-version: branch@master |
|
||||||
|
|
||||||
- name: Configure Pagefile |
|
||||||
uses: al-cheb/configure-pagefile-action@v1.2 |
|
||||||
with: |
|
||||||
minimum-size: 8GB |
|
||||||
maximum-size: 32GB |
|
||||||
disk-root: "D:" |
|
||||||
|
|
||||||
- name: Tests |
|
||||||
run: | |
|
||||||
if ("${{ matrix.os }}" -eq "windows-2019") { |
|
||||||
xmake l ./scripts/test.lua -vD -a ${{ matrix.arch }} -k ${{ matrix.kind }} --vs_runtime=${{ matrix.vs_runtime }} --vs_sdkver=10.0.19041.0 --linkjobs=2 |
|
||||||
} else { |
|
||||||
xmake l ./scripts/test.lua -vD -a ${{ matrix.arch }} -k ${{ matrix.kind }} --vs_runtime=${{ matrix.vs_runtime }} --linkjobs=2 |
|
||||||
} |
|
||||||
|
|
Loading…
Reference in new issue