@@ -16,16 +16,16 @@ jobs:
1616 runs-on : ${{ matrix.os }}
1717 strategy :
1818 matrix :
19- os : [ ubuntu-20.04, ubuntu-22 .04 ]
19+ os : [ ubuntu-24 .04 ]
2020 env :
21- CC : gcc-10
22- CXX : g++-10
21+ CC : gcc-13
22+ CXX : g++-13
2323 # Steps represent a sequence of tasks that will be executed as part of the job
2424 steps :
2525
2626 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2727 - name : checkout code
28- uses : actions/checkout@v3
28+ uses : actions/checkout@v5
2929
3030 - name : hardwares - cpu
3131 run : nproc; cat /proc/cpuinfo
@@ -78,16 +78,19 @@ jobs:
7878 # This workflow contains a single job called "build"
7979 build :
8080 name : publish release
81- if : github.repository == 'Certseeds/CS203_DSAA_template'
81+ env :
82+ CC : gcc-13
83+ CXX : g++-13
84+ if : github.repository == 'Certseeds/algorithm-template'
8285 needs : test
8386 # The type of runner that the job will run on
84- runs-on : ubuntu-22 .04
87+ runs-on : ubuntu-24 .04
8588 # Steps represent a sequence of tasks that will be executed as part of the job
8689 steps :
8790
8891 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
8992 - name : checkout code
90- uses : actions/checkout@v3
93+ uses : actions/checkout@v5
9194
9295 - name : Branch name
9396 id : branch_name
@@ -128,11 +131,11 @@ jobs:
128131 - name : zip the packet
129132 working-directory : ./../
130133 run : |
131- zip -r script_no_need.zip ./CS203_DSAA_template -x "*/.git/*"
134+ zip -r script_no_need.zip ./algorithm-template -x "*/.git/*"
132135 tree
133136
134137 - name : release
135- uses : softprops/action-gh-release@v1
138+ uses : softprops/action-gh-release@v2
136139 if : startsWith(github.ref, 'refs/tags/')
137140 with :
138141 files : ./../script_no_need.zip
@@ -144,18 +147,19 @@ jobs:
144147
145148 release-branch :
146149 name : publish release-branch
147- if : github.repository == 'Certseeds/CS203_DSAA_template'
150+ env :
151+ CC : gcc-13
152+ CXX : g++-13
153+ if : github.repository == 'Certseeds/algorithm-template'
148154 needs : [ test, build ]
149155 # The type of runner that the job will run on
150- runs-on : ubuntu-22.04
151- env :
152- GCC_V : 11
156+ runs-on : ubuntu-24.04
153157 # Steps represent a sequence of tasks that will be executed as part of the job
154158 steps :
155159
156160 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
157161 - name : checkout code
158- uses : actions/checkout@v3
162+ uses : actions/checkout@v5
159163
160164 - name : Branch name
161165 id : branch_name
0 commit comments