Skip to content

Commit

Permalink
ci: Remove useless steps
Browse files Browse the repository at this point in the history
  • Loading branch information
yzy-1 committed Jul 26, 2024
1 parent 2eeabec commit 34f4b7b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 57 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build-single-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,26 @@ on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "LICENSE"
- "README.md"

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install --frozen-lockfile
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Build single header
run: pnpm build-single-header
Expand Down
54 changes: 8 additions & 46 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,60 +10,22 @@ on:
- "README.md"

jobs:
tests-gcc:
run-test:
strategy:
matrix:
os: [ubuntu-22.04]
compiler: [g++]
version: [9, 10, 11, 12]
name: Test ${{ matrix.compiler }}-${{ matrix.version }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
compiler: ["g++-9", "g++-10", "g++-11", "g++-12", "clang++-13", "clang++-14", "clang++-15"]
name: Test ${{ matrix.compiler }}
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run tests
run: pnpm test -- --cpp_compiler="${{ matrix.compiler }}-${{ matrix.version }}"

tests-clang:
strategy:
matrix:
os: [ubuntu-22.04]
compiler: [clang++]
version: [13, 14, 15]
name: Test ${{ matrix.compiler }}-${{ matrix.version }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install --frozen-lockfile
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Run tests
run: pnpm test -- --cpp_compiler="${{ matrix.compiler }}-${{ matrix.version }}"
run: pnpm test -- --cpp_compiler="${{ matrix.compiler }}"

0 comments on commit 34f4b7b

Please sign in to comment.