-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from bottlerocket-os/ci
setup continuous integration
- Loading branch information
Showing
5 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# this file provides a manual way to clear out github actions caches. any change | ||
# to this file will cause all github action caches to miss. increment the number | ||
# below by 1 if you need to clear the caches. | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Updater CI | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
branches: ['*'] | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
branches: [develop] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cargo Home Cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cargo-home | ||
with: | ||
path: /usr/share/rust/.cargo | ||
key: ${{ hashFiles('.github/cache-bust', '/usr/share/rust/.cargo/bin/cargo') }}-${{ hashFiles('updater/Cargo.lock', 'integ/Cargo.lock') }} | ||
restore-keys: | | ||
${{ hashFiles('.github/cache-bust', '/usr/share/rust/.cargo/bin/cargo') }}-${{ hashFiles('updater/Cargo.lock', 'integ/Cargo.lock') }} | ||
${{ hashFiles('.github/cache-bust', '/usr/share/rust/.cargo/bin/cargo') }}- | ||
- name: Updater Build Cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: updater-target | ||
with: | ||
path: updater/target | ||
key: ${{ hashFiles('.github/cache-bust') }}-${{ hashFiles('updater/Cargo.lock') }} | ||
restore-keys: | | ||
${{ hashFiles('.github/cache-bust') }}- | ||
- name: Integ Build Cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: integ-target | ||
with: | ||
path: integ/target | ||
key: ${{ hashFiles('.github/cache-bust') }}-${{ hashFiles('integ/Cargo.lock') }} | ||
restore-keys: | | ||
${{ hashFiles('.github/cache-bust') }}- | ||
- run: rustup update stable && cargo install cargo-deny | ||
- run: make ci | ||
|
||
image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[licenses] | ||
unlicensed = "deny" | ||
|
||
# Deny licenses unless they are specifically listed here | ||
copyleft = "deny" | ||
allow-osi-fsf-free = "neither" | ||
default = "deny" | ||
|
||
# We want really high confidence when inferring licenses from text | ||
confidence-threshold = 0.93 | ||
|
||
# Licenses that are allowed but unused are commented out to silence warnings | ||
allow = [ | ||
"Apache-2.0", | ||
#"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"BSL-1.0", | ||
#"CC0-1.0", | ||
#"ISC", | ||
"MIT", | ||
# OpenSSL", | ||
"Unlicense", | ||
"Zlib" | ||
] | ||
|
||
[[licenses.clarify]] | ||
name = "ring" | ||
expression = "MIT AND ISC AND OpenSSL" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 0xbd0eed23 }, | ||
] | ||
|
||
[[licenses.clarify]] | ||
name = "webpki" | ||
expression = "ISC" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 0x001c7e6c }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[licenses] | ||
unlicensed = "deny" | ||
|
||
# Deny licenses unless they are specifically listed here | ||
copyleft = "deny" | ||
allow-osi-fsf-free = "neither" | ||
default = "deny" | ||
|
||
# We want really high confidence when inferring licenses from text | ||
confidence-threshold = 0.93 | ||
|
||
# Licenses that are allowed but unused are commented out to silence warnings | ||
allow = [ | ||
"Apache-2.0", | ||
#"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"BSL-1.0", | ||
#"CC0-1.0", | ||
"ISC", | ||
"MIT", | ||
"OpenSSL", | ||
"Unlicense", | ||
"Zlib" | ||
] | ||
|
||
[[licenses.clarify]] | ||
name = "ring" | ||
expression = "MIT AND ISC AND OpenSSL" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 0xbd0eed23 }, | ||
] | ||
|
||
[[licenses.clarify]] | ||
name = "webpki" | ||
expression = "ISC" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 0x001c7e6c }, | ||
] |