diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index bac0add..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,6 +0,0 @@ -# Just used for rust-analyzer. -[build] -target = "riscv64gc-unknown-none-elf" -# target = 'aarch64-unknown-none-softfloat' -# target = 'x86_64-unknown-none' -# target = 'loongarch64-unknown-none' diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index c6b7076..dee4eb4 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -18,7 +18,7 @@ jobs: - name: add target run: rustup target add riscv64gc-unknown-none-elf - name: generate doc - run: cargo doc --no-deps --all-features + run: cargo doc --no-deps --all-features --target riscv64gc-unknown-none-elf - name: Deploy to Github Pages uses: JamesIves/github-pages-deploy-action@v4 with: diff --git a/.github/workflows/test-external.yaml b/.github/workflows/test-external.yaml new file mode 100644 index 0000000..187a03e --- /dev/null +++ b/.github/workflows/test-external.yaml @@ -0,0 +1,25 @@ +name: TestExternal + +on: + workflow_dispatch: + push: + pull_request: + +jobs: + test-output: + runs-on: ubuntu-latest + steps: + - name: output + run: | + echo ${{ github.repository_owner }} + echo ${{ github.repository }} + + test-external-rcore-ch7: + if: github.repository_owner == 'sysones' + uses: sysones/rcore-tutorial-v3-with-hal-component/.github/workflows/test-run.yml@ch7 + with: + # The directory to Top test, which need to be empty or not exist in this repository + TopTestDirectory: RcoreTest + CallerPackage: polyhal + CallerRepository: ${{ github.repository }} + CallerCommit: ${{ github.sha }} \ No newline at end of file diff --git a/.github/workflows/test-extranel.yaml b/.github/workflows/test-extranel.yaml deleted file mode 100644 index 29b8901..0000000 --- a/.github/workflows/test-extranel.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: TestExternal - -on: - workflow_dispatch: - push: - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: yfblock - repo: rcore-tutorial-v3-with-hal-component - github_token: ${{ secrets.PERSONAL_TOKEN }} - github_user: yfblock - workflow_file_name: test-run.yml - ref: ch7 - wait_interval: 10 - client_payload: '{"commit": "${{ github.sha}}"}' - propagate_failure: true - trigger_workflow: true - wait_workflow: true diff --git a/README.md b/README.md index 91ac6a9..146b5bd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # arch crate +test > A crate help you to write a os that support multiple platforms.