mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-01 21:34:09 -04:00
d695f6b26f
Signed-off-by: Alex <aleksandrosansan@gmail.com>
89 lines
2.1 KiB
YAML
89 lines
2.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
docker_linux_tier1:
|
|
name: Docker Linux Tier1
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
target: [
|
|
i686-unknown-linux-gnu,
|
|
x86_64-unknown-linux-gnu,
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Rust toolchain
|
|
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
|
|
- name: Execute run-docker.sh
|
|
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
|
|
|
|
macos:
|
|
name: macOS
|
|
runs-on: macos-12
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
target: [
|
|
x86_64-apple-darwin,
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Rust toolchain
|
|
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
|
|
- name: Execute run.sh
|
|
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
|
|
|
|
windows:
|
|
name: Windows
|
|
runs-on: windows-2022
|
|
env:
|
|
OS: windows
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
include:
|
|
- target: x86_64-pc-windows-gnu
|
|
env:
|
|
ARCH_BITS: 64
|
|
ARCH: x86_64
|
|
- target: x86_64-pc-windows-msvc
|
|
# Disabled because broken:
|
|
# https://github.com/rust-lang/libc/issues/1592
|
|
#- target: i686-pc-windows-gnu
|
|
# env:
|
|
# ARCH_BITS: 32
|
|
# ARCH: i686
|
|
- target: i686-pc-windows-msvc
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Self-update rustup
|
|
run: rustup self update
|
|
shell: bash
|
|
- name: Setup Rust toolchain
|
|
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
|
|
shell: bash
|
|
- name: Execute run.sh
|
|
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
|
|
shell: bash
|
|
|
|
style_check:
|
|
name: Style check
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Rust toolchain
|
|
run: sh ./ci/install-rust.sh
|
|
- name: Check style
|
|
run: sh ci/style.sh
|