Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 2 additions & 74 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ jobs:
- run: scripts/ci/test.sh
- run: scripts/ci/build.sh
- run: scripts/ci/sha256sum.sh
- uses: actions/upload-artifact@v4
with:
name: bundles
path: build/release/*
retention-days: 2
linux:
name: Linux
runs-on: ubuntu-latest
Expand Down Expand Up @@ -101,75 +96,11 @@ jobs:
shell: bash
- run: scripts/ci/build.sh
shell: bash
sidecar:
name: Sidecar
runs-on: ubuntu-latest
needs: [macos, linux, windows]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.6'
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.ref_type == 'tag' && github.repository == 'mutagen-io/mutagen'
with:
username: ${{ secrets.SIDECAR_DEPLOYMENT_USER }}
password: ${{ secrets.SIDECAR_DEPLOYMENT_TOKEN }}
- name: "Determine sidecar tag"
id: tag
run: echo ::set-output name=tag::$(go run scripts/ci/sidecar_tag.go)
- uses: docker/build-push-action@v6
with:
file: images/sidecar/linux/Dockerfile
target: mit
tags: ${{ steps.tag.outputs.tag }}
push: ${{ github.ref_type == 'tag' && github.repository == 'mutagen-io/mutagen' }}
platforms: |
linux/386
linux/amd64
linux/arm/v6
linux/arm/v7
linux/arm64/v8
linux/ppc64le
- uses: docker/build-push-action@v6
with:
file: images/sidecar/linux/Dockerfile
target: sspl
tags: ${{ steps.tag.outputs.tag }}-sspl
push: ${{ github.ref_type == 'tag' && github.repository == 'mutagen-io/mutagen' }}
platforms: |
linux/386
linux/amd64
linux/arm/v6
linux/arm/v7
linux/arm64/v8
linux/ppc64le
release:
permissions:
contents: write
name: Release
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: [macos, linux, windows, sidecar]
timeout-minutes: 10
steps:
- uses: actions/download-artifact@v4
with:
name: bundles
path: bundles
- uses: alexellis/upload-assets@0.4.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["bundles/*"]'
required:
name: Required checks
runs-on: ubuntu-latest
if: always()
needs: [macos, linux, windows, sidecar]
needs: [macos, linux, windows]
permissions: {}
timeout-minutes: 5
steps:
Expand All @@ -178,19 +109,16 @@ jobs:
MACOS_RESULT: ${{ needs.macos.result }}
LINUX_RESULT: ${{ needs.linux.result }}
WINDOWS_RESULT: ${{ needs.windows.result }}
SIDECAR_RESULT: ${{ needs.sidecar.result }}
run: |
# Print the result of each job.
echo "macOS: ${MACOS_RESULT}"
echo "Linux: ${LINUX_RESULT}"
echo "Windows: ${WINDOWS_RESULT}"
echo "Sidecar: ${SIDECAR_RESULT}"

# Fail unless every job succeeded.
if [[ "${MACOS_RESULT}" != "success" ]] ||
[[ "${LINUX_RESULT}" != "success" ]] ||
[[ "${WINDOWS_RESULT}" != "success" ]] ||
[[ "${SIDECAR_RESULT}" != "success" ]]; then
[[ "${WINDOWS_RESULT}" != "success" ]]; then
echo "Not all jobs succeeded" 1>&2
exit 1
fi
12 changes: 0 additions & 12 deletions scripts/ci/sidecar_tag.go

This file was deleted.

Loading