feat: update workflow
All checks were successful
build / build (push) Successful in 16s
build / trigger-build-image (push) Has been skipped
build / triger-update-ci (push) Has been skipped

This commit is contained in:
zzjc1234 2024-10-10 15:43:39 +08:00
parent 6282b7b408
commit d6650f8bdd

View File

@ -11,13 +11,13 @@ jobs:
volumes: volumes:
- /home/actions/.ssh:/root/.ssh - /home/actions/.ssh:/root/.ssh
steps: steps:
- name: Check out repository code # - name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs # uses: https://gitea.com/BoYanZh/checkout@focs
- name: Setup Go 1.23.1 # - name: Setup Go 1.23.1
run: | # run: |
echo "PATH=$PATH:/usr/local/go/bin:/root/go/bin" >> $GITHUB_ENV # echo "PATH=$PATH:/usr/local/go/bin:/root/go/bin" >> $GITHUB_ENV
- name: Display Go version # - name: Display Go version
run: go version # run: go version
- name: Prepare - name: Prepare
run: | run: |
chown -R root:root /root/.ssh chown -R root:root /root/.ssh
@ -43,16 +43,16 @@ jobs:
echo "Hashes are the same, no update required." echo "Hashes are the same, no update required."
echo "hashes_match=true" >> $GITHUB_ENV echo "hashes_match=true" >> $GITHUB_ENV
fi fi
- name: Lint # - name: Lint
run: make lint # run: make lint
- name: Build # - name: Build
run: make build # run: make build
- name: Version # - name: Version
run: ./build/joj3 -version # run: ./build/joj3 -version
- name: Test # - name: Test
run: | # run: |
make prepare-test # make prepare-test
make ci-test # make ci-test
trigger-build-image: trigger-build-image:
container: container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
@ -85,7 +85,7 @@ jobs:
volumes: volumes:
- /home/actions/.ssh:/root/.ssh - /home/actions/.ssh:/root/.ssh
needs: build needs: build
if: env.hashes_match == 'false' if: github.env.hashes_match == 'false'
steps: steps:
- name: Set up Git - name: Set up Git
run: | run: |