1 [TA]Gitea tips and tricks
张泊明518370910136 edited this page 2025-05-14 05:35:03 +08:00

lfs and gitea actions

bug: https://github.com/actions/checkout/issues/1830#issuecomment-2314758792

solution: checkout lfs object separately

name: Run JOJ3 on Push
on: [push]

jobs:
  run:
    runs-on: focs-ubuntu-latest-slim
    container:
      volumes:
        - /home/tt/.config:/home/tt/.config
        - /home/tt/.cache:/home/tt/.cache
        - /home/tt/.ssh:/home/tt/.ssh
    steps:
      - name: Check out repository code
        uses: actions/checkout@focs
        with:
          fetch-depth: 0
          lfs: false
          persist-credentials: 'true'
      - name: Checkout lfs
        run: |
          git lfs install --local
          AUTH=$(git config --local http.https://focs.ji.sjtu.edu.cn/.extraheader)
          git config --local --unset http.https://focs.ji.sjtu.edu.cn/.extraheader
          git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
          git lfs pull          
      - name: run joj3
        run: |
          sudo -E -u tt joj3 -conf-root /home/tt/.config/joj          

msan with iostream

https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo