This repository was archived by the owner on Jun 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +114
-47
lines changed
Expand file tree Collapse file tree 4 files changed +114
-47
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ name : Build
12+ runs-on : ubuntu-latest
13+ steps :
14+
15+ - name : Set up Go 1.x
16+ uses : actions/setup-go@v2
17+ with :
18+ go-version : ^1.14
19+
20+ - name : Check out code into the Go module directory
21+ uses : actions/checkout@v2
22+ with :
23+ fetch-depth : ' 0'
24+
25+ - name : Test & Vet
26+ run : make test vet
27+
28+ - name : Build
29+ run : |
30+ GOOS=linux make build-octorpki
31+ GOOS=darwin make build-octorpki
32+ GOOS=windows EXTENSION=.exe make build-octorpki
33+
34+ - name : Install fpm
35+ run : |
36+ sudo apt-get update
37+ sudo apt-get install -y rpm ruby ruby-dev
38+ sudo gem install fpm
39+
40+ - name : Package
41+ run : make package-deb-octorpki package-rpm-octorpki
42+
43+ - name : Upload Artifact
44+ uses : actions/upload-artifact@v2
45+ with :
46+ name : dist
47+ path : dist/*
48+ retention-days : 14
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ name : Build
11+ runs-on : ubuntu-latest
12+ steps :
13+
14+ - name : Set up Go 1.x
15+ uses : actions/setup-go@v2
16+ with :
17+ go-version : ^1.14
18+
19+ - name : Check out code into the Go module directory
20+ uses : actions/checkout@v2
21+ with :
22+ fetch-depth : ' 0'
23+
24+ - name : Build
25+ run : |
26+ GOOS=linux make build-octorpki
27+ GOOS=darwin make build-octorpki
28+ GOOS=windows EXTENSION=.exe make build-octorpki
29+
30+ - name : Install fpm
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y rpm ruby ruby-dev
34+ sudo gem install fpm
35+
36+ - name : Package
37+ run : make package-deb-octorpki package-rpm-octorpki
38+
39+ - name : Create Release
40+ id : create_release
41+ uses : actions/create-release@v1
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ with :
45+ tag_name : ${{ github.ref }}
46+ release_name : Release ${{ github.ref }}
47+ draft : false
48+ prerelease : false
49+
50+ - name : Upload Release Asset
51+ uses : actions/github-script@v2
52+ with :
53+ github-token : ${{secrets.GITHUB_TOKEN}}
54+ script : |
55+ const fs = require('fs').promises;
56+ const upload_url = '${{ steps.create_release.outputs.upload_url }}';
57+ for (let file of await fs.readdir('./dist')) {
58+ console.log('uploading', file);
59+ await github.repos.uploadReleaseAsset({
60+ url: upload_url,
61+ name: file,
62+ data: await fs.readFile(`./dist/${file}`)
63+ });
64+ }
65+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Cloudflare RPKI Validator Tools and Libraries
22
3- [ ![ Build Status] ( https://travis-ci.org /cloudflare/cfrpki.svg?branch=master )] ( https://travis-ci.org /cloudflare/cfrpki )
3+ [ ![ Build Status] ( https://github.com /cloudflare/cfrpki/workflows/Go/badge .svg )] ( https://github.com /cloudflare/cfrpki/actions?query=workflow%3AGo )
44
55<img align =" left " src =" resources/octorpki.png " alt =" Cloudflare OctoRPKI logo " >
66
You can’t perform that action at this time.
0 commit comments