Skip to content

Commit

Permalink
Update commit-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Jul 26, 2024
1 parent 1ec7923 commit 35007cb
Showing 1 changed file with 0 additions and 96 deletions.
96 changes: 0 additions & 96 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,99 +24,3 @@ jobs:
repository: fxliang/RimeSeeMe
event-type: repository_dispatch_event

build:
runs-on: windows-2019
env:
boost_version: 1.84.0
BOOST_ROOT: ${{ github.workspace }}\deps\boost_1_84_0
steps:
- name: Checkout last commit
uses: actions/checkout@v4
with:
submodules: recursive

- name: Cache llvm
id: cache-llvm
uses: actions/cache@v4
with:
path: C:\\Program Files\\LLVM
key: ${{ runner.os }}-llvm-18.1.6

- name: Install llvm
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: choco install llvm --version=18.1.6

- name: Code style lint
shell: bash
run: ./clang-format.sh -i

- name: Configure build environment
shell: bash
run: |
cp env.vs2019.bat env.bat
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV
- name: Cache Boost
id: cache-boost
uses: actions/cache@v4
with:
path: |
${{ env.BOOST_ROOT }}
key: ${{ runner.os }}-boost-${{ env.boost_version }}

# install boost if not cached
- name: Install Boost
if: steps.cache-boost.outputs.cache-hit != 'true'
shell: bash
run: |
./install_boost.bat
./build.bat boost arm64
# add msbuild to PATH
#- name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v2

# use this after xmake 2.9.4 released
#- uses: xmake-io/github-action-setup-xmake@v1
# with:
# xmake-version: latest
# actions-cache-folder: '.xmake-cache'

- uses: ilammy/msvc-dev-cmd@v1

# use upper stream released librime files if stable release
- name: Copy Rime files
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
.\get-rime.ps1 -tag latest -use dev
- name: Build data
run: |
$ErrorActionPreference = 'Stop'
.\build.bat data
- name: Build Weasel
id: build_weasel
shell: cmd
run: |
# after xmake 2.9.4 released, the following 3 lines can be deleted
curl -LO https://github.com/xmake-io/xmake/releases/download/v2.9.3/xmake-master.win64.exe
.\xmake-master.win64.exe /S
set PATH=%PROGRAMFILES%\xmake;%PATH%
.\xbuild.bat arm64 installer
- name: Compress Debug Symbols
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
output\7z.exe a -t7z "./output/archives/debug_symbols.7z" "output/*.pdb" -r
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: weasel-artifact-${{ env.git_ref_name }}
if-no-files-found: error
path: |
.\output\archives\weasel*.exe
.\output\archives\debug_symbols.7z

0 comments on commit 35007cb

Please sign in to comment.