This commit is contained in:
CharlesThobe 2022-04-18 00:39:17 +02:00
parent 789e6559cf
commit 33e60253d9
4 changed files with 64 additions and 6 deletions

View File

@ -25,7 +25,7 @@ jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
@ -39,7 +39,7 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: test
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
with:
name: chdman-linux-${{ steps.previoustag.outputs.tag }}
path: chdman

View File

@ -25,7 +25,7 @@ jobs:
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Install dependencies
run: brew install ninja
- name: Build
@ -37,7 +37,7 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: test
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
with:
name: chdman-macos-${{ steps.previoustag.outputs.tag }}
path: chdman

58
.github/workflows/ci-msvc.yml vendored Normal file
View File

@ -0,0 +1,58 @@
name: CI (Windows)
on:
# push:
# paths:
# - '.github/**'
# - '3rdparty/**'
# - 'hash/**'
# - 'scripts/**'
# - 'src/**'
# - 'CMakeLists.txt'
# - 'cmake_subdirs/**'
# pull_request:
# paths:
# - '.github/**'
# - '3rdparty/**'
# - 'hash/**'
# - 'scripts/**'
# - 'src/**'
# - 'CMakeLists.txt'
# - 'cmake_subdirs/**'
workflow_dispatch:
jobs:
build-windows-msvc:
strategy:
matrix:
os: [windows-latest]
platform: [Win32, x64]
configuration: [Release, Release AVX2, CMake]
experimental: [false]
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-libc++ mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
- uses: actions/checkout@v2
- name: Build
env:
MINGW64: "/mingw64"
ARCHOPTS: "-fuse-ld=lld"
OVERRIDE_AR: "llvm-ar"
run: |
cmake -G Ninja
ninja
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: test
- uses: actions/upload-artifact@v2
with:
name: chdman-windows_x64-${{ steps.previoustag.outputs.tag }}
path: chdman.exe

View File

@ -32,7 +32,7 @@ jobs:
- uses: msys2/setup-msys2@v2
with:
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-libc++ mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Build
env:
MINGW64: "/mingw64"
@ -46,7 +46,7 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: test
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v2
with:
name: chdman-windows_x64-${{ steps.previoustag.outputs.tag }}
path: chdman.exe