Split crates and clean up structure of codebase (#294)

Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Félix Saparelli 2022-08-20 23:24:12 +12:00 committed by GitHub
parent bf700f9012
commit 4b00f5f143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 2989 additions and 1423 deletions

View file

@ -84,7 +84,7 @@ jobs:
jq \
--argjson for_release '${{ toJSON(inputs.for_release) }}' \
--argjson matrix '${{ toJSON(matrix) }}' \
-nrf ci-scripts/compile-settings.jq \
-nrf .github/scripts/compile-settings.jq \
| tee -a $GITHUB_ENV
- name: Configure caching
@ -107,7 +107,7 @@ jobs:
- name: Install deps
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && !startsWith(github.ref, 'refs/tags/v') }}
run: sudo ./ci-scripts/install-deps.sh
run: sudo .github/scripts/install-deps.sh
- name: Build
run: ${{ env.CTOOL }} build ${{ env.CARGS }}

View file

@ -50,7 +50,7 @@ jobs:
- name: Test
shell: bash
run: ./ci-scripts/tests.sh ${{ matrix.bin }} ${{ runner.os }}
run: .github/scripts/tests.sh ${{ matrix.bin }} ${{ runner.os }}
env:
CARGO_HOME: /tmp/cargo-home-for-test/

View file

@ -62,7 +62,7 @@ jobs:
ecnef=$'\n```'
title='release: v${{ inputs.version }}'
body=$(sed 's/%version%/${{ inputs.version }}/g' ci-scripts/release-pr.txt)
body=$(sed 's/%version%/${{ inputs.version }}/g' .github/scripts/release-pr.txt)
gh pr create --title "$title" --body "$body" --base main --head "${{ env.branch_name }}" --label "release"
env:

View file

@ -20,13 +20,13 @@ jobs:
- uses: actions/checkout@v2
- name: Extract tag from commit message
id: version
run: ./ci-scripts/extract-tag-from-release-commit.sh
run: .github/scripts/extract-tag-from-release-commit.sh
- name: Extract release notes
id: notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
run: ./ci-scripts/extract-release-notes.sh
run: .github/scripts/extract-release-notes.sh
tag:
needs: info
@ -61,7 +61,7 @@ jobs:
path: outputs/
- name: Pack archives
run: ./ci-scripts/pack-release-archives.sh
run: .github/scripts/pack-release-archives.sh
- name: Publish release
uses: softprops/action-gh-release@50195ba7f6f93d1ac97ba8332a178e008ad176aa

View file

@ -21,7 +21,7 @@ jobs:
- windows
runs-on: ${{ matrix.os }}-latest
name: on ${{ matrix.os }}
name: unit tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
@ -44,7 +44,7 @@ jobs:
- name: Install deps
if: matrix.os == 'ubuntu'
run: sudo ./ci-scripts/install-deps.sh
run: sudo .github/scripts/install-deps.sh
- name: Test (Unix)
if: matrix.os != 'windows'