Skip to content

Commit

Permalink
fix windows release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Sep 4, 2023
1 parent 26ae8aa commit 024651c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 97 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/commit-ci.yml

This file was deleted.

30 changes: 1 addition & 29 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,9 @@ name: Release CI

on:
push:
tags:
- '[0-9]+.*'

jobs:
linux:
uses: ./.github/workflows/linux-build.yml

macos:
uses: ./.github/workflows/macos-build.yml
with:
build_variant: '-universal'
rime_plugins: rime/librime-charcode hchunhui/librime-lua lotem/librime-octagram

windows:
uses: ./.github/workflows/windows-build.yml
with:
rime_plugins: rime/librime-charcode hchunhui/librime-lua lotem/librime-octagram

release:
needs: [macos, windows]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3

- name: Create GitHub release
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: ${{ contains(github.ref_name, '-') }}
title: librime ${{ github.ref_name }}
files: |
artifact/*
rime_plugins: rime/librime-charcode@win-ci hchunhui/librime-lua lotem/librime-octagram
36 changes: 0 additions & 36 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,39 +112,3 @@ jobs:
path: |
rime-${{ env.git_ref_name }}-${{ runner.os }}.7z
rime-deps-${{ env.git_ref_name }}-${{ runner.os }}.7z
build-mingw:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}

steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2

- name: Checkout last commit
uses: actions/checkout@v3

- name: Install dependencies
run: |
pacman -S --noconfirm base-devel mingw-w64-x86_64-toolchain ninja \
mingw64/mingw-w64-x86_64-cmake \
mingw-w64-x86_64-boost \
mingw-w64-x86_64-glog \
mingw-w64-x86_64-gtest \
mingw-w64-x86_64-yaml-cpp \
mingw-w64-x86_64-leveldb \
mingw-w64-x86_64-marisa \
mingw-w64-x86_64-opencc
- name: Build with mingw-w64
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_LOGGING:BOOL=ON \
-DBUILD_TEST:BOOL=ON \
-DBUILD_STATIC:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON
cmake --build build
cd build/test && cp ../lib/librime.dll . && ./rime_test
1 change: 1 addition & 0 deletions build-clang.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if %build_boost% == 1 (
link=static^
runtime-link=static^
stage^
--with-locale^
--with-filesystem^
--with-system^
--with-regex || exit
Expand Down

0 comments on commit 024651c

Please sign in to comment.