diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cross_test.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/linux.yml | 62 | ||||
| -rw-r--r-- | .github/workflows/linux_test.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/linux_test_asan.yml | 23 | ||||
| -rw-r--r-- | .github/workflows/linux_test_asan_noasm.yml | 24 |
5 files changed, 62 insertions, 87 deletions
diff --git a/.github/workflows/cross_test.yml b/.github/workflows/cross_test.yml deleted file mode 100644 index fc742e7..0000000 --- a/.github/workflows/cross_test.yml +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | name: cross_ci | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | build-other: | ||
| 7 | strategy: | ||
| 8 | matrix: | ||
| 9 | os: [ubuntu-20.04, ubuntu-22.04] | ||
| 10 | arch: [mingw32, mingw64, arm32, arm64, mips32, mips64] | ||
| 11 | runs-on: ${{ matrix.os }} | ||
| 12 | continue-on-error: false | ||
| 13 | env: | ||
| 14 | CC: gcc | ||
| 15 | ARCH: ${{ matrix.arch }} | ||
| 16 | name: ${{ matrix.arch }} - ${{ matrix.os }} | ||
| 17 | steps: | ||
| 18 | - uses: actions/checkout@main | ||
| 19 | - name: Run CI script | ||
| 20 | run: ./scripts/test | ||
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..f9ec4da --- /dev/null +++ b/.github/workflows/linux.yml | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | # GitHub Actions workflow to run tests on Linux. | ||
| 2 | name: "Linux" | ||
| 3 | |||
| 4 | on: | ||
| 5 | push: {} | ||
| 6 | pull_request: {} | ||
| 7 | schedule: | ||
| 8 | - cron: "0 0 * * *" # At 00:00 daily. | ||
| 9 | |||
| 10 | jobs: | ||
| 11 | # Test against all supported architectures. | ||
| 12 | test: | ||
| 13 | name: "${{ matrix.os }}/${{ matrix.arch }} (${{ matrix.compiler }})" | ||
| 14 | runs-on: "${{ matrix.os }}" | ||
| 15 | permissions: | ||
| 16 | contents: read | ||
| 17 | strategy: | ||
| 18 | fail-fast: false | ||
| 19 | matrix: | ||
| 20 | os: ["ubuntu-20.04", "ubuntu-22.04"] | ||
| 21 | arch: ["native", "arm32", "arm64", "mingw32", "mingw64", "mips32", "mips64"] | ||
| 22 | compiler: ["gcc"] | ||
| 23 | include: | ||
| 24 | - os: "ubuntu-20.04" | ||
| 25 | arch: "native" | ||
| 26 | compiler: "clang" | ||
| 27 | - os: "ubuntu-22.04" | ||
| 28 | arch: "native" | ||
| 29 | compiler: "clang" | ||
| 30 | steps: | ||
| 31 | - name: "Checkout repository" | ||
| 32 | uses: actions/checkout@v4 | ||
| 33 | |||
| 34 | - name: "Run tests" | ||
| 35 | run: ./scripts/test | ||
| 36 | env: | ||
| 37 | ARCH: "${{ matrix.arch }}" | ||
| 38 | CC: "${{ matrix.compiler }}" | ||
| 39 | |||
| 40 | # Test ASAN with and without ASM enabled. | ||
| 41 | test-asan: | ||
| 42 | name: "ASAN (${{ matrix.asm == 'ON' && 'asm' || 'no-asm' }})" | ||
| 43 | runs-on: "ubuntu-latest" | ||
| 44 | permissions: | ||
| 45 | contents: read | ||
| 46 | strategy: | ||
| 47 | fail-fast: false | ||
| 48 | matrix: | ||
| 49 | asm: [ON, OFF] | ||
| 50 | steps: | ||
| 51 | - name: "Checkout repository" | ||
| 52 | uses: actions/checkout@v4 | ||
| 53 | |||
| 54 | - name: "Run tests" | ||
| 55 | run: ./scripts/test | ||
| 56 | env: | ||
| 57 | ARCH: "native" | ||
| 58 | CC: "clang" | ||
| 59 | CFLAGS: "-ggdb -fsanitize=address" | ||
| 60 | LDFLAGS: "-fsanitize=address" | ||
| 61 | ENABLE_ASM: "${{ matrix.asm }}" | ||
| 62 | CTEST_OUTPUT_ON_FAILURE: 1 | ||
diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml deleted file mode 100644 index 94bef31..0000000 --- a/.github/workflows/linux_test.yml +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | name: linux_ci | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | build-native: | ||
| 7 | strategy: | ||
| 8 | matrix: | ||
| 9 | os: [ubuntu-20.04, ubuntu-22.04] | ||
| 10 | compiler: [clang, gcc] | ||
| 11 | runs-on: ${{ matrix.os }} | ||
| 12 | continue-on-error: false | ||
| 13 | env: | ||
| 14 | CC: ${{ matrix.compiler }} | ||
| 15 | ARCH: native | ||
| 16 | name: ${{ matrix.compiler }} - ${{ matrix.os }} | ||
| 17 | steps: | ||
| 18 | - uses: actions/checkout@main | ||
| 19 | - name: Run CI script | ||
| 20 | run: ./scripts/test | ||
diff --git a/.github/workflows/linux_test_asan.yml b/.github/workflows/linux_test_asan.yml deleted file mode 100644 index 12e0889..0000000 --- a/.github/workflows/linux_test_asan.yml +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | name: linux_ci_asan | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | build-native: | ||
| 7 | strategy: | ||
| 8 | matrix: | ||
| 9 | os: [ubuntu-latest] | ||
| 10 | compiler: [clang] | ||
| 11 | runs-on: ${{ matrix.os }} | ||
| 12 | continue-on-error: false | ||
| 13 | env: | ||
| 14 | CC: ${{ matrix.compiler }} | ||
| 15 | ARCH: native | ||
| 16 | CFLAGS: "-ggdb -fsanitize=address" | ||
| 17 | LDFLAGS: "-fsanitize=address" | ||
| 18 | CTEST_OUTPUT_ON_FAILURE: 1 | ||
| 19 | name: ${{ matrix.compiler }} - ${{ matrix.os }} | ||
| 20 | steps: | ||
| 21 | - uses: actions/checkout@main | ||
| 22 | - name: Run CI script | ||
| 23 | run: ./scripts/test | ||
diff --git a/.github/workflows/linux_test_asan_noasm.yml b/.github/workflows/linux_test_asan_noasm.yml deleted file mode 100644 index 92ab2fc..0000000 --- a/.github/workflows/linux_test_asan_noasm.yml +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | name: linux_ci_asan_noasm | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | jobs: | ||
| 6 | build-native: | ||
| 7 | name: "${{ matrix.compiler }} - ${{ matrix.os }}" | ||
| 8 | runs-on: "${{ matrix.os }}" | ||
| 9 | strategy: | ||
| 10 | matrix: | ||
| 11 | os: ["ubuntu-latest"] | ||
| 12 | compiler: ["clang"] | ||
| 13 | env: | ||
| 14 | CC: "${{ matrix.compiler }}" | ||
| 15 | ARCH: native | ||
| 16 | CFLAGS: "-ggdb -fsanitize=address" | ||
| 17 | LDFLAGS: "-fsanitize=address" | ||
| 18 | CTEST_OUTPUT_ON_FAILURE: 1 | ||
| 19 | ENABLE_ASM: OFF | ||
| 20 | steps: | ||
| 21 | - name: "Checkout repository" | ||
| 22 | uses: actions/checkout@main | ||
| 23 | - name: "Run tests" | ||
| 24 | run: ./scripts/test | ||
