Skip to content

Commit

Permalink
[chore] Add continue-on-error for nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Oct 28, 2024
1 parent 173466f commit d2e3a74
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,23 @@ jobs:
run: rustc --version --verbose
- name: Clippy for the default target
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make clippy
- name: Clippy for x86_64
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make clippy ARCH=x86_64
- name: Clippy for riscv64
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make clippy ARCH=riscv64
- name: Clippy for aarch64
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make clippy ARCH=aarch64
- name: Check code format
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo fmt --all -- --check

build-apps-for-unikernel:
Expand Down Expand Up @@ -116,73 +121,95 @@ jobs:
run: make pre_update
- name: Build helloworld
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/helloworld
- name: Build memtest
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/memtest
- name: Build exception
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/exception
- name: Build display
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/display
- name: Build task/yield
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/task/yield
- name: Build task/parallel
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/task/parallel
- name: Build task/sleep
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/task/sleep
- name: Build task/priority
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/task/priority
- name: Build task/tls
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/task/tls
- name: Build fs/shell
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/fs/shell
- name: Build net/echoserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/net/echoserver
- name: Build net/httpclient
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/net/httpclient
- name: Build net/httpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/net/httpserver
- name: Build net/udpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/net/udpserver

- uses: ./.github/workflows/actions/setup-musl
with:
arch: ${{ matrix.arch }}
- name: Build c/helloworld
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/helloworld
- name: Build c/memtest
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/memtest
- name: Build c/sqlite3
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/sqlite3
- name: Build c/httpclient
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/httpclient
- name: Build c/httpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/httpserver
- name: Build c/udpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/udpserver
- name: Build c/iperf
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/iperf
- name: Build c/redis
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make ARCH=${{ matrix.arch }} A=apps/c/redis SMP=4

build-apps-for-other-platforms:
Expand Down Expand Up @@ -219,26 +246,33 @@ jobs:
arch: x86_64
- name: Build helloworld for x86_64-pc-oslab
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=x86_64-pc-oslab A=apps/helloworld
- name: Build net/httpserver for x86_64-pc-oslab
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=x86_64-pc-oslab A=apps/net/httpserver FEATURES=driver-ixgbe
- name: Build c/iperf for x86_64-pc-oslab
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=x86_64-pc-oslab A=apps/c/iperf FEATURES=driver-ixgbe,driver-ramdisk
- name: Build c/redis for x86_64-pc-oslab
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=x86_64-pc-oslab A=apps/c/redis FEATURES=driver-ixgbe,driver-ramdisk SMP=4

- name: Build helloworld for aarch64-raspi4
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=aarch64-raspi4 A=apps/helloworld
- name: Build fs/shell for aarch64-raspi4
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=aarch64-raspi4 A=apps/fs/shell FEATURES=driver-bcm2835-sdhci

- name: Build helloworld for aarch64-bsta1000b
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: make PLATFORM=aarch64-bsta1000b A=apps/helloworld

build-apps-for-std:
Expand Down Expand Up @@ -268,42 +302,55 @@ jobs:
run: make pre_update
- name: Build helloworld
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-helloworld
- name: Build memtest
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-memtest
- name: Build exception
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-exception
- name: Build task/yield
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-yield
- name: Build task/parallel
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-parallel
- name: Build task/sleep
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-sleep
- name: Build task/priority
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-priority
- name: Build task/tls
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-tls
- name: Build fs/shell
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-shell
- name: Build net/echoserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-echoserver
- name: Build net/httpclient
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-httpclient
- name: Build net/httpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-httpserver
- name: Build net/udpserver
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: cargo build -p arceos-udpserver

build-apps-for-monolithic:
Expand Down Expand Up @@ -337,6 +384,7 @@ jobs:
run: make pre_update
- name: Bulld monolithic-userboot
working-directory: ${{ env.WORKING_DIRECTORY }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
run: |
sh ./build_img.sh -a ${{ matrix.arch }}
make ARCH=${{ matrix.arch }} A=apps/monolithic_userboot

0 comments on commit d2e3a74

Please sign in to comment.