forked from rcore-os/zCore
feat(ci): 重新打开依赖 lfs 的测例
This commit is contained in:
parent
302ecf1990
commit
b67cbc2398
|
|
@ -64,26 +64,22 @@ jobs:
|
|||
use-cross: true
|
||||
args: --target aarch64-unknown-linux-gnu --workspace --exclude linux-syscall --exclude zcore-loader --exclude zcore
|
||||
|
||||
# build-user:
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# os: [ubuntu-20.04, macos-latest]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
build-user:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# - name: Pull prebuilt images
|
||||
# run: git lfs pull -I prebuilt/zircon/x64/libc.so,prebuilt/zircon/x64/libfdio.so,prebuilt/zircon/x64/libunwind.so,prebuilt/zircon/x64/libzircon.so,prebuilt/zircon/x64/Scrt1.o
|
||||
- name: Pull prebuilt images
|
||||
run: git lfs pull -I prebuilt/zircon/x64/libc.so,prebuilt/zircon/x64/libfdio.so,prebuilt/zircon/x64/libunwind.so,prebuilt/zircon/x64/libzircon.so,prebuilt/zircon/x64/Scrt1.o
|
||||
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# profile: minimal
|
||||
# toolchain: ${{ env.rust_toolchain }}
|
||||
# target: x86_64-fuchsia
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ env.rust_toolchain }}
|
||||
target: x86_64-fuchsia
|
||||
|
||||
# - name: Build Zircon user programs
|
||||
# run: cd zircon-user && make build MODE=release
|
||||
- name: Build Zircon user programs
|
||||
run: cd zircon-user && make build MODE=release
|
||||
|
||||
test-libos:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
|||
|
|
@ -23,22 +23,11 @@ jobs:
|
|||
toolchain: ${{ env.rust_toolchain }}
|
||||
components: rust-src, llvm-tools-preview, rustfmt, clippy
|
||||
|
||||
# - name: Pull prebuilt images
|
||||
# run: |
|
||||
# git lfs pull -I prebuilt/linux/libc-libos.so
|
||||
# git lfs pull -I prebuilt/zircon/x64/bringup.zbi
|
||||
# git lfs pull -I prebuilt/zircon/x64/libzircon-libos.so
|
||||
# git lfs pull -I prebuilt/zircon/x64/userboot-libos.so
|
||||
|
||||
# - name: Prepare rootfs
|
||||
# run: make rootfs
|
||||
|
||||
- name: Run unit test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --no-fail-fast
|
||||
#run: cargo test --no-fail-fast
|
||||
env:
|
||||
CARGO_INCREMENTAL: '0'
|
||||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort'
|
||||
|
|
@ -77,36 +66,36 @@ jobs:
|
|||
with:
|
||||
command: bench
|
||||
|
||||
# zircon-core-test-libos:
|
||||
# name: Zircon Core Test Libos
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# with:
|
||||
# submodules: 'recursive'
|
||||
zircon-core-test-libos:
|
||||
name: Zircon Core Test Libos
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# profile: minimal
|
||||
# toolchain: ${{ env.rust_toolchain }}
|
||||
# components: rust-src, llvm-tools-preview, rustfmt, clippy
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ env.rust_toolchain }}
|
||||
components: rust-src, llvm-tools-preview, rustfmt, clippy
|
||||
|
||||
# - name: Pull prebuilt images
|
||||
# run: |
|
||||
# git lfs pull -I prebuilt/zircon/x64/core-tests.zbi
|
||||
# git lfs pull -I prebuilt/zircon/x64/libzircon-libos.so
|
||||
# git lfs pull -I prebuilt/zircon/x64/userboot-libos.so
|
||||
- name: Pull prebuilt images
|
||||
run: |
|
||||
git lfs pull -I prebuilt/zircon/x64/core-tests.zbi
|
||||
git lfs pull -I prebuilt/zircon/x64/libzircon-libos.so
|
||||
git lfs pull -I prebuilt/zircon/x64/userboot-libos.so
|
||||
|
||||
# - name: Install python dependencies
|
||||
# run: .github/scripts/install-deps.sh
|
||||
- name: Install python dependencies
|
||||
run: .github/scripts/install-deps.sh
|
||||
|
||||
# - name: Run fast tests
|
||||
# if: github.event_name != 'schedule'
|
||||
# run: cd tests && python3 zircon_core_test.py --libos --fast --no-failed
|
||||
- name: Run fast tests
|
||||
if: github.event_name != 'schedule'
|
||||
run: cd tests && python3 zircon_core_test.py --libos --fast --no-failed
|
||||
|
||||
# - name: Run full tests
|
||||
# if: github.event_name == 'schedule'
|
||||
# run: cd tests && python3 zircon_core_test.py --libos
|
||||
- name: Run full tests
|
||||
if: github.event_name == 'schedule'
|
||||
run: cd tests && python3 zircon_core_test.py --libos
|
||||
|
||||
linux-libc-test-libos:
|
||||
name: Linux Libc Test Libos
|
||||
|
|
@ -136,56 +125,52 @@ jobs:
|
|||
if: github.event_name == 'schedule'
|
||||
run: cd tests && python3 linux_libc_test.py --libos
|
||||
|
||||
# zircon-core-test-baremetal:
|
||||
# name: Zircon Core Test Baremetal
|
||||
# runs-on: ubuntu-20.04
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# arch: [x86_64]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# with:
|
||||
# submodules: 'recursive'
|
||||
zircon-core-test-baremetal:
|
||||
name: Zircon Core Test Baremetal
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
# - uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# profile: minimal
|
||||
# toolchain: ${{ env.rust_toolchain }}
|
||||
# components: rust-src, llvm-tools-preview, rustfmt, clippy
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ env.rust_toolchain }}
|
||||
components: rust-src, llvm-tools-preview, rustfmt, clippy
|
||||
|
||||
# - name: Pull prebuilt images
|
||||
# run: |
|
||||
# git lfs pull -I prebuilt/zircon/x64/core-tests.zbi
|
||||
# git lfs pull -I prebuilt/zircon/x64/libzircon.so
|
||||
# git lfs pull -I prebuilt/zircon/x64/userboot.so
|
||||
- name: Pull prebuilt images
|
||||
run: |
|
||||
git lfs pull -I prebuilt/zircon/x64/core-tests.zbi
|
||||
git lfs pull -I prebuilt/zircon/x64/libzircon.so
|
||||
git lfs pull -I prebuilt/zircon/x64/userboot.so
|
||||
|
||||
# - name: Install dependencies
|
||||
# run: .github/scripts/install-deps.sh ninja-build
|
||||
- name: Install dependencies
|
||||
run: .github/scripts/install-deps.sh ninja-build
|
||||
|
||||
# - name: Cache QEMU
|
||||
# id: cache-qemu
|
||||
# uses: actions/cache@v3
|
||||
# with:
|
||||
# path: qemu-${{ env.qemu_version }}
|
||||
# key: qemu-${{ env.qemu_version }}-x86_64-riscv64
|
||||
- name: Cache QEMU
|
||||
id: cache-qemu
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: qemu-${{ env.qemu_version }}
|
||||
key: qemu-${{ env.qemu_version }}-x86_64-riscv64
|
||||
|
||||
# - name: Download and Compile QEMU
|
||||
# if: steps.cache-qemu.outputs.cache-hit != 'true'
|
||||
# run: .github/scripts/install-qemu.sh ${{ env.qemu_version }}
|
||||
- name: Download and Compile QEMU
|
||||
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
||||
run: .github/scripts/install-qemu.sh ${{ env.qemu_version }}
|
||||
|
||||
# - name: Install QEMU
|
||||
# run: |
|
||||
# cd qemu-${{ env.qemu_version }} && sudo make install
|
||||
# qemu-system-${{ matrix.arch }} --version
|
||||
- name: Install QEMU
|
||||
run: |
|
||||
cd qemu-${{ env.qemu_version }} && sudo make install
|
||||
qemu-system-x86_64 --version
|
||||
|
||||
# - name: Run fast tests
|
||||
# if: github.event_name != 'schedule'
|
||||
# run: cd tests && python3 zircon_core_test.py --fast
|
||||
- name: Run fast tests
|
||||
if: github.event_name != 'schedule'
|
||||
run: cd tests && python3 zircon_core_test.py --fast
|
||||
|
||||
# - name: Run full tests
|
||||
# if: github.event_name == 'schedule'
|
||||
# run: cd tests && python3 zircon_core_test.py
|
||||
- name: Run full tests
|
||||
if: github.event_name == 'schedule'
|
||||
run: cd tests && python3 zircon_core_test.py
|
||||
|
||||
linux-libc-test-baremetal:
|
||||
name: Linux Libc Test Baremetal
|
||||
|
|
|
|||
Loading…
Reference in New Issue