Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #20 from travisn/backport-master
Browse files Browse the repository at this point in the history
Backport: Storage provider refactor including latest build scripts and docs to the release-1.7 branch
  • Loading branch information
travisn authored Sep 8, 2021
2 parents 062f1ca + f030f64 commit 2d5a4a3
Show file tree
Hide file tree
Showing 936 changed files with 960 additions and 164,221 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Resolves #
**Checklist:**

- [ ] **Commit Message Formatting**: Commit titles and messages follow guidelines in the [developer guide](https://rook.io/docs/rook/master/development-flow.html#commit-structure).
- [ ] **Skip Tests for Docs**: Add the flag for skipping the build if this is only a documentation change. See [here](https://github.com/rook/rook/blob/master/INSTALL.md#skip-ci) for the flag.
- [ ] **Skip Unrelated Tests**: Add a flag to run tests for a specific storage provider. See [test options](https://github.com/rook/rook/blob/master/INSTALL.md#test-storage-provider).
- [ ] **Skip Tests for Docs**: Add the flag for skipping the build if this is only a documentation change. See [here](https://github.com/rook/cassandra/blob/master/INSTALL.md#skip-ci) for the flag.
- [ ] **Skip Unrelated Tests**: Add a flag to run tests for a specific storage provider. See [test options](https://github.com/rook/cassandra/blob/master/INSTALL.md#test-storage-provider).
- [ ] Reviewed the developer guide on [Submitting a Pull Request](https://rook.io/docs/rook/master/development-flow.html#submitting-a-pull-request)
- [ ] Documentation has been updated, if necessary.
- [ ] Unit tests have been added, if necessary.
Expand Down
62 changes: 10 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,33 @@ defaults:
shell: bash --noprofile --norc -eo pipefail -x {0}

jobs:
macos-build:
runs-on: macos-10.15
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-go@v2
with:
go-version: 1.16

- name: copy working directory to GOPATH
run: sudo mkdir -p /Users/runner/go/src/github.com && sudo cp -a /Users/runner/work/rook /Users/runner/go/src/github.com/

- name: build rook
working-directory: /Users/runner/go/src/github.com/rook/rook
run: |
GOPATH=$(go env GOPATH) make clean && make -j$nproc IMAGES='ceph' BUILD_CONTAINER_IMAGE=false build
- name: run codegen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make codegen

- name: validate codegen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh codegen

- name: run mod check
run: GOPATH=$(go env GOPATH) make -j $(nproc) mod.check

- name: validate modcheck
run: tests/scripts/validate_modified_files.sh modcheck

- name: run crds-gen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: make csv-clean && GOPATH=$(go env GOPATH) make crds

- name: validate crds-gen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh crd

- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

linux-build-all:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
go-version : ['1.16', '1.17']
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: setup golang
- name: setup golang ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: ${{ matrix.go-version }}

- name: set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: build.all rook
run: tests/scripts/github-action-helper.sh build_rook_all
- name: build.all rook with go ${{ matrix.go-version }}
run: |
tests/scripts/github-action-helper.sh build_rook_all
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
timeout-minutes: 60
82 changes: 0 additions & 82 deletions .github/workflows/canary-integration-test-arm64.yml

This file was deleted.

Loading

0 comments on commit 2d5a4a3

Please sign in to comment.