binary_artifact.yml: chmod 755 the v executables before archiving them.

pull/7113/head
Delyan Angelov 2020-12-03 12:51:28 +02:00
parent b1e3db712e
commit 2f6757b315
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 9 additions and 4 deletions

View File

@ -16,7 +16,7 @@ jobs:
- name: Compile - name: Compile
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
run: make && ./v -o v -prod cmd/v run: make && ./v -cc $CC -o v -prod cmd/v
- name: Create artifact - name: Create artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -42,7 +42,7 @@ jobs:
- name: Compile - name: Compile
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
run: make && ./v -o v -prod cmd/v run: make && ./v -cc $CC -o v -prod cmd/v
- name: Create artifact - name: Create artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -115,8 +115,13 @@ jobs:
with: with:
name: ${{ matrix.version }} name: ${{ matrix.version }}
path: ./${{ matrix.version }} path: ./${{ matrix.version }}
- name: Build - name: Build Zip Archives
run: zip -r v_${{ matrix.version }}.zip ./${{ matrix.version }}/* 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 - name: Get short tag name
uses: jungwinter/split@v1 uses: jungwinter/split@v1
id: split id: split