mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
binary_artifact.yml: chmod 755 the v executables before archiving them.
This commit is contained in:
parent
b1e3db712e
commit
2f6757b315
13
.github/workflows/binary_artifact.yml
vendored
13
.github/workflows/binary_artifact.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user