diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml deleted file mode 100644 index 9753ff4de7..0000000000 --- a/.github/workflows/commit-ci.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Commit CI - -on: - push: - branches: - - '*' - tags: - - '![0-9]+.*' - pull_request: - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout last commit - uses: actions/checkout@v3 - - name: Install clang-format - run: sudo apt install -y clang-format - - name: Lint - run: find src -name '*.cc' -o -name '*.h' | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"find src -name '*.cc' -o -name '*.h' | xargs clang-format -i"'"'.; false; } - - linux: - needs: lint - uses: ./.github/workflows/linux-build.yml - - macos: - needs: lint - uses: ./.github/workflows/macos-build.yml - - windows: - needs: lint - uses: ./.github/workflows/windows-build.yml diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index c66a196708..a97af1ef60 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -2,13 +2,8 @@ name: Release CI on: push: - tags: - - '[0-9]+.*' jobs: - linux: - uses: ./.github/workflows/linux-build.yml - macos: uses: ./.github/workflows/macos-build.yml with: @@ -19,20 +14,3 @@ jobs: 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/*