Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jan 20, 2024
1 parent 0b5766b commit 171e0dc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- arch: x86_64
kver: 5.10.60


runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -53,6 +52,7 @@ jobs:
- name: Make modules
run: |
sudo -s # use root to compile
export WORK_PATH=${{ github.workspace }}
. qr-modules/compile.sh
echo "----------------- Env -----------------"
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Tar to Artifacts
run: |
tar caf ${{ matrix.arch }}-${{ matrix.kver }}.tgz -C output .
tar -caf ${{ matrix.arch }}-${{ matrix.kver }}.tgz -C output .
- name: Upload to Artifacts
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/qr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
cd qr
. scripts/func.sh "${{ secrets.RRORG }}"
convertpo2mo "files/initrd/opt/qr/lang"
getAddons "files/p8/addons" ${{ inputs.prerelease }}
getModules "files/p8/modules" ${{ inputs.prerelease }}
echo "OK"
# Build incremental
Expand Down Expand Up @@ -171,6 +173,26 @@ jobs:
done < <(yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml)
zip -9j update.zip sha256sum
# updateall.zip
rm -f sha256sum
echo ' "files/p8/addons/": "/mnt/p8/addons/"' >> update-list.yml
echo ' "files/p8/modules/": "/mnt/p8/modules/"' >> update-list.yml
zip -9j updateall.zip update-list.yml update-check.sh
while read F; do
if [ -d "${F}" ]; then
FTGZ="$(basename "${F}").tgz"
tar -czf "${FTGZ}" -C "${F}" .
sha256sum "${FTGZ}" >> sha256sum
zip -9j updateall.zip "${FTGZ}"
rm -f "${FTGZ}"
else
(cd $(dirname "${F}") && sha256sum $(basename "${F}")) >> sha256sum
zip -9j updateall.zip "${F}"
fi
done < <(yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml)
zip -9j updateall.zip sha256sum
# Upload artifact
- name: Upload
if: env.VERSION == ''
Expand Down

0 comments on commit 171e0dc

Please sign in to comment.