fix: change branch #1
This file contains 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: test | |
on: | |
push: | |
branches: | |
- actions | |
jobs: | |
build-release: | |
name: Build Release | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
# - target: x86_64-unknown-linux-musl | |
# os: ubuntu-latest | |
# - target: i686-unknown-linux-musl | |
# os: ubuntu-latest | |
# - target: aarch64-unknown-linux-musl | |
# os: ubuntu-latest | |
# - target: arm-unknown-linux-musleabihf | |
# os: ubuntu-latest | |
# - target: x86_64-apple-darwin | |
# os: macOS-latest | |
# - target: aarch64-apple-darwin | |
# os: macOS-latest | |
# - target: x86_64-pc-windows-msvc | |
# os: windows-latest | |
# - target: i686-pc-windows-msvc | |
# os: windows-latest | |
# - target: x86_64-pc-windows-gnu | |
# os: windows-latest | |
# - target: i686-pc-windows-gnu | |
# os: windows-latest | |
# use-cross: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
- name: Install openssl | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libssl-dev pkg-config -y | |
- name: Build release binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --locked --target ${{ matrix.target }} | |
# use-cross: ${{ matrix.use-cross || matrix.os == 'ubuntu-latest' }} |