Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker666 committed Jul 4, 2024
1 parent 1564681 commit fa4f5af
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,37 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- name: linux-amd64
target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
- name: linux-arm64
target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
- name: macos-amd64
target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
- name: macos-arm64
target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: cache crates
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"

- name: Cache crates
uses: actions/cache@v4
with:
path: |
Expand All @@ -35,17 +44,6 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu
sudo apt install -y gcc-x86-64-linux-gnu
sudo apt install -y build-essential
sudo apt install -y libssl-dev
- name: Install target
run: rustup target add ${{ matrix.target }}

Expand All @@ -55,8 +53,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.target }}
path: ${{ github.event.repository.name }}-${{ matrix.target }}
name: ${{ github.event.repository.name }}-${{ matrix.name }}
path: ${{ github.event.repository.name }}-${{ matrix.name }}

release:
needs: build
Expand Down

0 comments on commit fa4f5af

Please sign in to comment.