From 33e60253d949939594ec0ef63a436c222d0529a1 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Mon, 18 Apr 2022 00:39:17 +0200 Subject: [PATCH] CI stuff --- .github/workflows/ci-linux.yml | 4 +-- .github/workflows/ci-macos.yml | 4 +-- .github/workflows/ci-msvc.yml | 58 ++++++++++++++++++++++++++++++++ .github/workflows/ci-windows.yml | 4 +-- 4 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci-msvc.yml diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index e125f09..de2ccac 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -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 diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 92a5700..3bfabe0 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci-msvc.yml b/.github/workflows/ci-msvc.yml new file mode 100644 index 0000000..8ce4efd --- /dev/null +++ b/.github/workflows/ci-msvc.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 7f727a9..2c02c5c 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -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 \ No newline at end of file