Fixed workflow typo.

This commit is contained in:
imi415 2022-08-08 21:05:12 +08:00
parent 76b08197db
commit 6ef14033c8
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
1 changed files with 12 additions and 16 deletions

View File

@ -16,15 +16,13 @@ jobs:
sudo apt-get install -y gperf help2man libtool-bin meson ninja-build
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
- name: "Build ct-ng"
run:
working-directory: "ct_ng"
shell: "./configure --prefix=${{ github.workspace }}/.local/bin && make && make install"
working-directory: "ct_ng"
run: "./configure --prefix=${{ github.workspace }}/.local/bin && make && make install"
- name: "Create build environment"
run: "mkdir build && cp meta/Crosstool-NG/defconfig build/defconfig"
- name: "Patch defconfig"
run:
working-directory: "build"
shell: |
working-directory: "build"
run: |
echo CT_LOCAL_TARBALLS_DIR="${{ github.workspace }}/tarballs" >> defconfig
echo CT_PREFIX_DIR="${CT_TOP_DIR}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}" >> defconfig
- name: "Tarball cache management"
@ -33,16 +31,14 @@ jobs:
path: "build/taballs"
key: ${{ runner.os }}-ct-ng-tarballs
- name: "Build toolchain"
run:
working-directory: "build"
shell: "ct-ng build"
working-directory: "build"
run: "ct-ng build"
- name: "Create toolchain archive"
run:
working-directory: "build"
shell: "tar -cvzf sh-unknown-elf-${{ github.sha }}.tar.gz sh-unknown-elf"
working-directory: "build"
run: "tar -cvzf sh-unknown-elf-${{ github.sha }}.tar.gz sh-unknown-elf"
- name: "Publish artifact"
uses: "actions/upload-artifact@v3"
with:
name: "toolchain archive"
path: "build/sh-unknown-elf-${{ github.sha }}.tar.gz"
retention-days: 30
with:
name: "toolchain archive"
path: "build/sh-unknown-elf-${{ github.sha }}.tar.gz"
retention-days: 30