Suppress delayed sync self-events (#26) #14
Workflow file for this run
This file contains hidden or 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
| name: release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: build ${{ matrix.target }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: aarch64-apple-darwin | |
| os: macos-14 | |
| builder: cargo | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-24.04 | |
| builder: cargo | |
| - target: aarch64-unknown-linux-gnu | |
| os: ubuntu-24.04 | |
| builder: cross | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install cross | |
| if: matrix.builder == 'cross' | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cross | |
| - name: Build | |
| run: ${{ matrix.builder }} build --release --target ${{ matrix.target }} | |
| - name: Package | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist/package | |
| cp "target/${{ matrix.target }}/release/fabric" dist/package/fabric | |
| chmod 755 dist/package/fabric | |
| archive="dist/fabric-${{ matrix.target }}.tar.gz" | |
| tar -czf "$archive" -C dist/package fabric | |
| members="$(tar -tzf "$archive")" | |
| if [[ "$members" != "fabric" ]]; then | |
| echo "release archive must contain exactly one member named fabric" >&2 | |
| printf 'archive members:\n%s\n' "$members" >&2 | |
| exit 1 | |
| fi | |
| if command -v shasum >/dev/null 2>&1; then | |
| shasum -a 256 "$archive" > "$archive.sha256" | |
| else | |
| sha256sum "$archive" > "$archive.sha256" | |
| fi | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: fabric-${{ matrix.target }} | |
| path: dist/* | |
| release: | |
| name: publish release | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* |