wip #154
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
name: CI | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash --noprofile --norc -CeEuxo pipefail {0} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
tidy: | |
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main | |
checkout-action: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: taiki-e/checkout-action@main | |
- uses: taiki-e/install-action@shellcheck | |
- uses: taiki-e/install-action@shfmt | |
- run: git ls-files | |
- run: ./tools/tidy.sh | |
# For comparison | |
actions-checkout: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: taiki-e/install-action@shellcheck | |
- uses: taiki-e/install-action@shfmt | |
- run: git ls-files | |
- run: ./tools/tidy.sh | |
test-container: | |
strategy: | |
fail-fast: false | |
matrix: | |
container: | |
- ubuntu:18.04 # glibc 2.27 | |
- ubuntu:20.04 # glibc 2.31 | |
- ubuntu:22.04 # glibc 2.35 | |
- ubuntu:24.04 # glibc 2.39 | |
- debian:10-slim # glibc 2.28 | |
- debian:11-slim # glibc 2.31 | |
- debian:12-slim # glibc 2.36 | |
- fedora:latest # glibc 2.38 (as of fedora 39) | |
- almalinux:8 # glibc 2.28 | |
- almalinux:8-minimal # glibc 2.28 | |
- almalinux:9 # glibc 2.34 | |
- almalinux:9-minimal # glibc 2.34 | |
- centos:6 # glibc 2.12 | |
- centos:7 # glibc 2.17 | |
- opensuse/leap:latest # glibc 2.31 (as of leap 15.5) | |
- opensuse/tumbleweed:latest # glibc 2.39 (as of 2024-04-18) | |
- archlinux:latest # glibc 2.38 (as of 2024-04-18) | |
- alpine:latest # musl 1.2.4 (as of alpine 3.19) | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
container: ${{ matrix.container }} | |
steps: | |
- name: Install requirements (centos) | |
run: | | |
# https://github.com/rust-lang/rust/pull/126352 | |
sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \ | |
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!' | |
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf | |
if [[ "${{ matrix.container }}" == "centos:6" ]]; then | |
yum install -y https://repo.ius.io/ius-release-el6.rpm | |
yum install -y git2u | |
fi | |
if: startsWith(matrix.container, 'centos') | |
- name: Install requirements (alpine) | |
run: apk --no-cache add bash | |
shell: sh | |
if: startsWith(matrix.container, 'alpine') | |
- uses: taiki-e/checkout-action@dev | |
- run: git ls-files |