@@ -30,11 +30,11 @@ jobs:
3030 id : release_info
3131 run : |
3232 if [[ $IS_NIGHTLY ]]; then
33- echo "::set-output name= tag_name:: nightly-${GITHUB_SHA}"
34- echo "::set-output name= release_name:: Nightly ($(date '+%Y-%m-%d'))"
33+ echo "tag_name= nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
34+ echo "release_name= Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
3535 else
36- echo "::set-output name= tag_name:: ${GITHUB_REF_NAME}"
37- echo "::set-output name= release_name:: ${GITHUB_REF_NAME}"
36+ echo "tag_name= ${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
37+ echo "release_name= ${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
3838 fi
3939
4040 # Creates a `nightly-SHA` tag for this specific nightly
@@ -125,12 +125,9 @@ jobs:
125125 echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
126126
127127 - name : Build binaries
128- uses : actions-rs/cargo@v1
129128 env :
130129 SVM_TARGET_PLATFORM : ${{ matrix.job.svm_target_platform }}
131- with :
132- command : build
133- args : --release --bins --target ${{ matrix.job.target }}
130+ run : cargo build --release --bins --target ${{ matrix.job.target }}
134131
135132 - name : Archive binaries
136133 id : artifacts
@@ -140,22 +137,22 @@ jobs:
140137 ARCH : ${{ matrix.job.arch }}
141138 VERSION_NAME : |
142139 ${{ (env.IS_NIGHTLY && 'nightly') || needs.prepare.outputs.tag_name }}
140+ shell : bash
143141 run : |
144142 if [ "$PLATFORM_NAME" == "linux" ]; then
145143 tar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release forge cast anvil chisel
146- echo "::set-output name= file_name:: foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz"
144+ echo "file_name= foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
147145 elif [ "$PLATFORM_NAME" == "darwin" ]; then
148146 # We need to use gtar here otherwise the archive is corrupt.
149147 # See: https://github.com/actions/virtual-environments/issues/2619
150148 gtar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release forge cast anvil chisel
151- echo "::set-output name= file_name:: foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz"
149+ echo "file_name= foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
152150 else
153151 cd ./target/${TARGET}/release
154152 7z a -tzip "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" forge.exe cast.exe anvil.exe chisel.exe
155153 mv "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" ../../../
156- echo "::set-output name= file_name:: foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip"
154+ echo "file_name= foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT
157155 fi
158- shell : bash
159156
160157 - name : Build man page
161158 id : man
@@ -165,6 +162,7 @@ jobs:
165162 TARGET : ${{ matrix.job.target }}
166163 VERSION_NAME : |
167164 ${{ (env.IS_NIGHTLY && 'nightly') || needs.prepare.outputs.tag_name }}
165+ shell : bash
168166 run : |
169167 sudo apt-get -y install help2man
170168 help2man -N ./target/${TARGET}/release/forge > forge.1
@@ -176,8 +174,7 @@ jobs:
176174 gzip anvil.1
177175 gzip chisel.1
178176 tar -czvf "foundry_man_${VERSION_NAME}.tar.gz" forge.1.gz cast.1.gz anvil.1.gz chisel.1.gz
179- echo "::set-output name=foundry_man::foundry_man_${VERSION_NAME}.tar.gz"
180- shell : bash
177+ echo "foundry_man=foundry_man_${VERSION_NAME}.tar.gz" >> $GITHUB_OUTPUT
181178
182179 # Creates the release for this specific version
183180 - name : Create release
0 commit comments