Skip to content
Myr

ci: initial github actions config

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrew Gallant · committed by Andrew Gallant · parent 5011dba · Browse files · 1 file+98 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+98 added−0 removed

  • other:+98 added−0 removed

1 file+98 added−0 removed

added:.github/workflows/ci.yml+98 added
1name: ci2on:3 pull_request:4 push:5 branches:6 - master7 schedule:8 cron: '00 01 * * *'9jobs:10 test:11 name: test12 runs-on: ${{ matrix.os }}13 strategy:14 matrix:15 # The docs seem to suggest that we can have a matrix with just an16 # include directive, but it result in a "matrix must define at least17 # one vector" error in the CI system.18 build:19 - pinned-glibc20 - pinned-musl21 - stable22 - beta23 # We test musl with nightly because every once in a while, this will24 # catch an upstream regression.25 - nightly-glibc26 - nightly-musl27 - macos28 - win-msvc-3229 - win-msvc-6430 - win-gnu-3231 - win-gnu-6432 include:33 # - build: pinned-glibc34 # os: ubuntu-18.0435 # rust: 1.34.036 # target: x86_64-unknown-linux-gnu37 - build: pinned-musl38 os: ubuntu-18.0439 rust: 1.34.040 target: x86_64-unknown-linux-musl41 - build: stable42 os: ubuntu-18.0443 rust: stable44 target: x86_64-unknown-linux-gnu45 # - build: beta46 # os: ubuntu-18.0447 # rust: beta48 # target: x86_64-unknown-linux-gnu49 # - build: nightly-glibc50 # os: ubuntu-18.0451 # rust: nightly52 # target: x86_64-unknown-linux-gnu53 # - build: nightly-musl54 # os: ubuntu-18.0455 # rust: nightly56 # target: x86_64-unknown-linux-musl57 # - build: macos58 # os: macOS-10.1459 # rust: stable60 # target: x86_64-apple-darwin61 # - build: win-msvc-3262 # os: windows-201963 # rust: stable64 # target: i686-pc-windows-msvc65 # - build: win-msvc-6466 # os: windows-201967 # rust: stable68 # target: x86_64-pc-windows-msvc69 # - build: win-gnu-3270 # os: windows-201971 # rust: stable-i686-gnu72 # target: i686-pc-windows-gnu73 # - build: win-gnu-6474 # os: windows-201975 # rust: stable-x86_64-gnu76 # target: x86_64-pc-windows-gnu77 steps:78 - name: Checkout repository79 uses: actions/checkout@v180 with:81 fetch-depth: 182 - name: Install Rust83 uses: hecrj/setup-rust-action@v184 with:85 rust-version: ${{ matrix.rust }}86 - name: Install Rust Target87 run: rustup target add ${{ matrix.target }}88 - name: Install musl-gcc89 if: contains(matrix.target, 'musl')90 run: |91 apt-get install musl-tools92 - name: Build everything93 run: cargo build --verbose --target ${{ matrix.target }} --all --features pcre294 - name: Test zsh auto-completions95 if: matrix.build == 'stable'96 run: ./ci/test_complete.sh97 - name: Run tests98 run: cargo test --verbose --target ${{ matrix.target }} --all --features pcre2