From d869a07cd2b2e9cc22e7e87f7f001be84712fe9c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 5 Sep 2021 23:08:34 -0700 Subject: [PATCH] clean up --- .../{release.yml => binaries_dev.yml} | 0 ...ease_binaries.yml => binaries_release.yml} | 0 .github/workflows/binary_test.yml | 50 ----------------- .github/workflows/container_test.yml | 53 ------------------- 4 files changed, 103 deletions(-) rename .github/workflows/{release.yml => binaries_dev.yml} (100%) rename .github/workflows/{release_binaries.yml => binaries_release.yml} (100%) delete mode 100644 .github/workflows/binary_test.yml delete mode 100644 .github/workflows/container_test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/binaries_dev.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/binaries_dev.yml diff --git a/.github/workflows/release_binaries.yml b/.github/workflows/binaries_release.yml similarity index 100% rename from .github/workflows/release_binaries.yml rename to .github/workflows/binaries_release.yml diff --git a/.github/workflows/binary_test.yml b/.github/workflows/binary_test.yml deleted file mode 100644 index 8468555e3..000000000 --- a/.github/workflows/binary_test.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: "go: test building cross-platform binary" - -on: - pull_request: - workflow_dispatch: [] - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - strategy: - matrix: - goos: [linux, windows, darwin, freebsd, netbsd, openbsd] - goarch: [amd64, arm, arm64, 386] - exclude: - - goarch: arm - goos: darwin - - goarch: 386 - goos: darwin - - goarch: arm - goos: windows - - goarch: arm64 - goos: windows - - concurrency: - group: ${{ github.head_ref }}/binary_test/${{ matrix.goos }}/${{ matrix.goarch }} - cancel-in-progress: true - - steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - cd weed; go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - - - name: Build - run: cd weed; GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v . diff --git a/.github/workflows/container_test.yml b/.github/workflows/container_test.yml deleted file mode 100644 index d86392af5..000000000 --- a/.github/workflows/container_test.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: "docker: test building container images" - -on: - pull_request: - workflow_dispatch: [] - -concurrency: - group: ${{ github.head_ref }}/container_test - cancel-in-progress: true - -jobs: - build-test: - runs-on: [ubuntu-latest] - strategy: - matrix: - platform: [ linux ] - arch: [ amd64, arm, arm64, 386 ] - - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Docker meta - id: docker_meta - uses: docker/metadata-action@v3 - with: - images: | - chrislusf/seaweedfs - ghcr.io/chrislusf/seaweedfs - tags: | - type=raw,value=latest - labels: | - org.opencontainers.image.title=seaweedfs - org.opencontainers.image.vendor=Chris Lu - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - with: - buildkitd-flags: "--debug" - - - name: Build - uses: docker/build-push-action@v2 - with: - context: ./docker - push: false - file: ./docker/Dockerfile - platforms: ${{ matrix.platform }}/${{ matrix.arch }} - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }}