Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #87 from docker/mono-action
Mono action
Tõnis Tiigi
authored and
GitHub
committed
Aug 14, 2020
Unverified
No user is associated with the committer email.
Showing
35 changed files
with
18,109 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,15 @@ | ||
# This file is for unifying the coding style for different editors and IDEs. | ||
# More information at http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,166 @@ | ||
name: setup-buildx-ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-ci.yml | ||
- setup-buildx/** | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-ci.yml | ||
- setup-buildx/** | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
buildx-version: | ||
- latest | ||
- v0.2.2 | ||
- "" | ||
steps: | ||
- | ||
name: Runner info | ||
run: | | ||
sudo apt-get install -y hwinfo | ||
sudo hwinfo --short | ||
sudo mount | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: ./setup-buildx/ | ||
with: | ||
version: ${{ matrix.buildx-version }} | ||
- | ||
name: Builder instance name | ||
run: echo ${{ steps.buildx.outputs.name }} | ||
- | ||
name: Available platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
- | ||
name: Dump context | ||
uses: crazy-max/ghaction-dump-context@v1 | ||
|
||
multi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up Docker Buildx 1 | ||
id: buildx1 | ||
uses: ./setup-buildx/ | ||
- | ||
name: Builder 1 instance name | ||
run: echo ${{ steps.buildx1.outputs.name }} | ||
- | ||
name: Set up Docker Buildx 2 | ||
id: buildx2 | ||
uses: ./setup-buildx/ | ||
- | ||
name: Builder 2 instance name | ||
run: echo ${{ steps.buildx2.outputs.name }} | ||
|
||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up Docker Buildx | ||
uses: ./setup-buildx/ | ||
with: | ||
install: true | ||
- | ||
name: Check cmd | ||
run: | | ||
docker build --help | ||
use: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
use: | ||
- true | ||
- false | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: ./setup-buildx/ | ||
with: | ||
use: ${{ matrix.use }} | ||
- | ||
name: List builder instances | ||
run: docker buildx ls | ||
|
||
driver: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
driver-opt: | ||
- image=moby/buildkit:latest | ||
- image=moby/buildkit:master | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: ./setup-buildx/ | ||
with: | ||
driver: docker-container | ||
driver-opt: ${{ matrix.driver-opt }} | ||
|
||
with-qemu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
buildx-version: | ||
- latest | ||
- v0.2.2 | ||
- "" | ||
qemu-platforms: | ||
- all | ||
- arm64,riscv64,arm | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up QEMU | ||
uses: ./setup-qemu/ | ||
with: | ||
platforms: ${{ matrix.qemu-platforms }} | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: ./setup-buildx/ | ||
with: | ||
version: ${{ matrix.buildx-version }} | ||
- | ||
name: Available platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
- | ||
name: Builder instance name | ||
run: echo ${{ steps.buildx.outputs.name }} |
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 @@ | ||
name: setup-buildx-precheckin | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-precheckin.yml | ||
- setup-buildx/** | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-precheckin.yml | ||
- setup-buildx/** | ||
|
||
jobs: | ||
pre-checkin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Install | ||
run: yarn --cwd ./setup-buildx/ install | ||
- | ||
name: Pre-checkin | ||
run: yarn --cwd ./setup-buildx/ run pre-checkin | ||
- | ||
name: Check for uncommitted changes | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git status --porcelain | ||
echo "::warning::Found changes. Please run 'yarn --cwd ./setup-buildx/ run pre-checkin' and push" | ||
fi |
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 @@ | ||
name: setup-buildx-test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-test.yml | ||
- setup-buildx/** | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-buildx-test.yml | ||
- setup-buildx/** | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Install | ||
run: yarn --cwd ./setup-buildx/ install | ||
- | ||
name: Test | ||
run: yarn --cwd ./setup-buildx/ run test | ||
# - | ||
# name: Upload coverage | ||
# uses: codecov/codecov-action@v1.0.7 | ||
# if: success() | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# file: ./coverage/clover.xml |
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,53 @@ | ||
name: setup-qemu-ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-qemu-ci.yml | ||
- setup-qemu/** | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-qemu-ci.yml | ||
- setup-qemu/** | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- tonistiigi/binfmt:latest | ||
- tonistiigi/binfmt:master | ||
platforms: | ||
- all | ||
- arm64,riscv64,arm | ||
steps: | ||
- | ||
name: Runner info | ||
run: | | ||
sudo apt-get install -y hwinfo | ||
sudo hwinfo --short | ||
sudo mount | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up QEMU | ||
id: qemu | ||
uses: ./setup-qemu/ | ||
with: | ||
image: ${{ matrix.image }} | ||
platforms: ${{ matrix.platforms }} | ||
- | ||
name: Available platforms | ||
run: echo ${{ steps.qemu.outputs.platforms }} | ||
- | ||
name: Dump context | ||
uses: crazy-max/ghaction-dump-context@v1 |
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 @@ | ||
name: setup-qemu-precheckin | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-qemu-precheckin.yml | ||
- setup-qemu/** | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
paths: | ||
- .github/workflows/setup-qemu-precheckin.yml | ||
- setup-qemu/** | ||
|
||
jobs: | ||
pre-checkin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Install | ||
run: yarn --cwd ./setup-qemu/ install | ||
- | ||
name: Pre-checkin | ||
run: yarn --cwd ./setup-qemu/ run pre-checkin | ||
- | ||
name: Check for uncommitted changes | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git status --porcelain | ||
echo "::warning::Found changes. Please run 'yarn --cwd ./setup-qemu/ run pre-checkin' and push" | ||
fi |
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,2 @@ | ||
/dist/** linguist-generated=true | ||
/lib/** linguist-generated=true |
Oops, something went wrong.