Skip to content

Create llvm-snapshot.gpg.key #19

Create llvm-snapshot.gpg.key

Create llvm-snapshot.gpg.key #19

Workflow file for this run

name: Release
on:
push:
branches: []
env:
CARGO_TERM_COLOR: always
jobs:
build:
continue-on-error: true
runs-on: ${{ matrix.host_os }}
strategy:
matrix:
target:
- aarch64-apple-darwin
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- arm-unknown-linux-gnueabi
- armv7-unknown-linux-musleabihf
- i686-unknown-linux-gnu
- i686-unknown-linux-musl
- x86_64-apple-darwin
- x86_64-unknown-linux-musl
- x86_64-unknown-linux-gnu
include:
- target: aarch64-apple-darwin
host_os: macos-latest
- target: aarch64-unknown-linux-gnu
host_os: ubuntu-latest
packages: "gcc-aarch64-linux-gnu libc6-dev-arm64-cross binutils-aarch64-linux-gnu"
- target: aarch64-unknown-linux-musl
host_os: ubuntu-latest
packages: "gcc-aarch64-linux-gnu libc6-dev-arm64-cross musl-tools"
- target: arm-unknown-linux-gnueabi
host_os: ubuntu-latest
packages: "arm-none-linux-gnueabi-gcc binutils-arm-linux-gnueabi"
- target: armv7-unknown-linux-musleabihf
host_os: ubuntu-latest
packages: "arm-linux-musleabihf-gcc"
- target: i686-unknown-linux-gnu
host_os: ubuntu-latest
packages: "gcc-multilib libc6-dev-i386"
- target: i686-unknown-linux-musl
host_os: ubuntu-latest
packages: "gcc-multilib libc6-dev-i386 musl-tools"
- target: x86_64-apple-darwin
host_os: macos-latest
- target: x86_64-unknown-linux-musl
host_os: ubuntu-latest
packages: "musl-tools"
- target: x86_64-unknown-linux-gnu
host_os: ubuntu-latest
packages: ""
steps:
- uses: actions/checkout@v4
- name: Install deps
if: ${{ contains(matrix.host_os, 'ubuntu') }}
run: |
chmod +x .github/workflows/install-build-tools.sh
.github/workflows/install-build-tools.sh +stable --target=${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
prefix-key: v0-rust-${{ matrix.target }}
cache-provider: buildjet
- name: Install targets
run: rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Pack
run: |
mkdir target/pingpong || rm -rf target/pingpong/*
mv target/${{ matrix.target }}/release/pingpong target/pingpong/pingpong
cp -r config target/pingpong/config
- name: Upload
uses: actions/upload-artifact@v4
with:
name: pingpong-${{ matrix.target }}.zip
path: target/pingpong