Fix tlcp client; refactor SM2&SM3&SM4; Add about page #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 The Tongsuo Project Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License 2.0 (the "License"). You may not use | |
# this file except in compliance with the License. You can obtain a copy | |
# in the file LICENSE in the source distribution or at | |
# https://github.com/Tongsuo-Project/tsapp/blob/main/LICENSE | |
name: GitHub CI | |
on: [pull_request, push] | |
permissions: | |
contents: read | |
jobs: | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install dependency | |
run: | | |
sudo apt-get update | |
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-format-15 | |
- uses: actions/checkout@v3 | |
- name: check format | |
run: | | |
clang-format-15 --Werror --dry-run *.cpp *.h | |
unix: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ | |
macos-12, | |
macos-13, | |
ubuntu-20.04, | |
ubuntu-22.04, | |
] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout tongsuo | |
uses: actions/checkout@v3 | |
with: | |
repository: Tongsuo-Project/Tongsuo | |
path: Tongsuo | |
- name: build Tongsuo | |
working-directory: ./Tongsuo | |
run: | | |
./config --banner=Configured --prefix=${RUNNER_TEMP}/tongsuo --libdir=${RUNNER_TEMP}/tongsuo/lib enable-ntls | |
make -s -j4 | |
make install | |
- uses: actions/checkout@v3 | |
- name: install QT | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: 6.4.3 | |
- name: build tsapp | |
run: | | |
TONGSUO_HOME=${RUNNER_TEMP}/tongsuo PREFIX=${RUNNER_TEMP}/tsapp qmake | |
make -s -j4 | |
make install | |
windows: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-2019 | |
- windows-2022 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: win64 | |
- uses: ilammy/setup-nasm@v1 | |
with: | |
platform: win64 | |
- uses: shogo82148/actions-setup-perl@v1 | |
- name: checkout tongsuo | |
uses: actions/checkout@v3 | |
with: | |
repository: Tongsuo-Project/Tongsuo | |
path: Tongsuo | |
- name: build Tongsuo | |
shell: cmd | |
working-directory: ./Tongsuo | |
run: | | |
mkdir _build | |
pushd _build | |
perl ..\Configure no-makedepend no-shared enable-ntls VC-WIN64A --prefix=%RUNNER_TEMP%\tongsuo | |
nmake /S | |
nmake install_sw | |
popd | |
- uses: actions/checkout@v3 | |
- name: install QT | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: 6.4.3 | |
- name: build tsapp | |
shell: cmd | |
run: | | |
set TONGSUO_HOME=%RUNNER_TEMP%\tongsuo | |
set PREFIX=%RUNNER_TEMP%\tsapp | |
qmake | |
nmake /S | |
nmake install | |
- name: debug | |
if: ${{ failure() }} | |
shell: cmd | |
run: | | |
type Makefile.Release |