Skip to content

Commit

Permalink
Land libressl#941, improve Linux github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Nov 8, 2023
2 parents e3fe379 + ba296ec commit 0f8cd84
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 87 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/cross_test.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# GitHub Actions workflow to run tests on Linux.
name: "Linux"

on:
push: {}
pull_request: {}
schedule:
- cron: "0 0 * * *" # At 00:00 daily.

jobs:
# Test against all supported architectures.
test:
name: "${{ matrix.os }}/${{ matrix.arch }} (${{ matrix.compiler }})"
runs-on: "${{ matrix.os }}"
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
arch: ["native", "arm32", "arm64", "mingw32", "mingw64", "mips32", "mips64"]
compiler: ["gcc"]
include:
- os: "ubuntu-20.04"
arch: "native"
compiler: "clang"
- os: "ubuntu-22.04"
arch: "native"
compiler: "clang"
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Run tests"
run: ./scripts/test
env:
ARCH: "${{ matrix.arch }}"
CC: "${{ matrix.compiler }}"

# Test ASAN with and without ASM enabled.
test-asan:
name: "ASAN (${{ matrix.asm == 'ON' && 'asm' || 'no-asm' }})"
runs-on: "ubuntu-latest"
permissions:
contents: read
strategy:
fail-fast: false
matrix:
asm: [ON, OFF]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Run tests"
run: ./scripts/test
env:
ARCH: "native"
CC: "clang"
CFLAGS: "-ggdb -fsanitize=address"
LDFLAGS: "-fsanitize=address"
ENABLE_ASM: "${{ matrix.asm }}"
CTEST_OUTPUT_ON_FAILURE: 1
20 changes: 0 additions & 20 deletions .github/workflows/linux_test.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/linux_test_asan.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/linux_test_asan_noasm.yml

This file was deleted.

0 comments on commit 0f8cd84

Please sign in to comment.