mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
workflows: releases: build v -prod
This commit is contained in:
parent
4e6bc27b30
commit
5eb7660608
12
.github/workflows/binary_artifact.yml
vendored
12
.github/workflows/binary_artifact.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: Build binary artifacts
|
name: Build binary artifacts
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- weekly.**
|
- weekly.**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Compile
|
- name: Compile
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
run: make
|
run: make && v -o v -prod cmd/v
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Compile
|
- name: Compile
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
run: make
|
run: make && v -o v -prod cmd/v
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -137,7 +137,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.split.outputs._2 }}
|
tag_name: ${{ steps.split.outputs._2 }}
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -145,4 +145,4 @@ jobs:
|
|||||||
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
|
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
|
||||||
asset_path: ./${{ matrix.version }}.zip
|
asset_path: ./${{ matrix.version }}.zip
|
||||||
asset_name: ${{ matrix.version }}.zip
|
asset_name: ${{ matrix.version }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user