Skip to content

Commit a096950

Browse files
author
Hogni Gylfason
authored
Create full-build-linux-amd64.yml
1 parent fac74c3 commit a096950

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build Directory
15+
run: mkdir build
16+
- name: Create project files
17+
run: cmake .. -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/nq-aws-sdk-cpp -DBUILD_ONLY="aws-cpp-sdk-s3,aws-cpp-sdk-text-to-speech,aws-cpp-sdk-polly"
18+
working-directory: build
19+
- name: Build
20+
run: make
21+
working-directory: build
22+
- name: Install artifacts
23+
run: make install
24+
working-directory: build
25+
- name: Compress artifacts
26+
run: zip -qr nq-aws-sdk-cpp.zip nq-aws-sdk-cpp/
27+
- name: Create release
28+
id: create_release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: nq-aws-sdk-cpp-${{ github.ref }}-linux-amd64
34+
release_name: Release ${{ github.ref }}
35+
draft: false
36+
prerelease: false
37+
- name: Upload release asset
38+
id: upload_release_asset
39+
uses: actions/upload-release-asset@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
44+
asset_path: ./
45+
asset_name: nq-aws-sdk-cpp.zip
46+
asset_content_type: application/zip

0 commit comments

Comments
 (0)