Skip to content

fix(fetcher/checksum): panic when 0 < flen % (block_len * lanes) < bl… #33

fix(fetcher/checksum): panic when 0 < flen % (block_len * lanes) < bl…

fix(fetcher/checksum): panic when 0 < flen % (block_len * lanes) < bl… #33

Workflow file for this run

on:
push:
tags:
- 'v*'
permissions:
checks: read
contents: write
name: Release
jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
strategy:
matrix:
include:
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
cross: true
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
cross: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Cargo Toolchain
uses: dtolnay/rust-toolchain@1.71.1
- name: Setup Cross Toolchain
if: matrix.cross
uses: taiki-e/install-action@cross
- name: Wait for build on master to succeed
uses: lewagon/wait-on-check-action@v1.3.1
with:
ref: master
check-name: 'Build (${{ matrix.target }}, ${{ matrix.os }}, ${{ matrix.cross }})'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- uses: Swatinem/rust-cache@v2
name: Rust Cache
with:
shared-key: build-${{ matrix.target }}-refs/heads/master
- uses: taiki-e/upload-rust-binary-action@v1
name: Build and Upload
with:
bin: rsync-gc,rsync-fetcher,rsync-gateway,rsync-migration
archive: rsync-sjtug-$target
target: ${{ matrix.target }}
checksum: sha512
token: ${{ secrets.GITHUB_TOKEN }}
release_image:
name: Release (Postgres image)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build postgres image
uses: docker/build-push-action@v4
with:
context: postgres
push: true
tags: photonquantum/postgres-rsync-sjtug:latest
cache-from: type=gha
cache-to: type=gha,mode=max