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