From 2f6757b315fab11bea1d5cecbdae249a9fc46c8e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 3 Dec 2020 12:51:28 +0200 Subject: [PATCH] binary_artifact.yml: chmod 755 the v executables before archiving them. --- .github/workflows/binary_artifact.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/binary_artifact.yml b/.github/workflows/binary_artifact.yml index 1d877b7f7a..1d68a02c80 100644 --- a/.github/workflows/binary_artifact.yml +++ b/.github/workflows/binary_artifact.yml @@ -16,7 +16,7 @@ jobs: - name: Compile env: CC: ${{ matrix.compiler }} - run: make && ./v -o v -prod cmd/v + run: make && ./v -cc $CC -o v -prod cmd/v - name: Create artifact uses: actions/upload-artifact@v2 with: @@ -42,7 +42,7 @@ jobs: - name: Compile env: CC: ${{ matrix.compiler }} - run: make && ./v -o v -prod cmd/v + run: make && ./v -cc $CC -o v -prod cmd/v - name: Create artifact uses: actions/upload-artifact@v2 with: @@ -115,8 +115,13 @@ jobs: with: name: ${{ matrix.version }} path: ./${{ matrix.version }} - - name: Build - run: zip -r v_${{ matrix.version }}.zip ./${{ matrix.version }}/* + - name: Build Zip Archives + run: | + cd ${{ matrix.version }}/ + chmod 755 v || true + chmod 755 v.exe || true + zip -r9 --symlinks ../v_${{ matrix.version }}.zip ./* + cd .. - name: Get short tag name uses: jungwinter/split@v1 id: split