Skip to content

Commit

Permalink
🐛 Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sjquant committed Aug 31, 2024
1 parent e00c2ec commit 631dd91
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"

concurrency:
group: ${{ github.sha }}
Expand All @@ -16,50 +16,50 @@ jobs:
strategy:
matrix:
include:
- build: linux
os: ubuntu-18.04
rust: stable
target: x86_64-unknown-linux-musl
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: linux
os: ubuntu-20.04
rust: stable
target: x86_64-unknown-linux-musl
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
env:
RUST_BACKTRACE: full
TARGET_DIR: ./target
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Get the release version from the tag
shell: bash
if: env.FLOPHA_VERSION == ''
run: |
echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.FLOPHA_VERSION }}"
- name: Get the release version from the tag
shell: bash
if: env.FLOPHA_VERSION == ''
run: |
echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.FLOPHA_VERSION }}"
- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu-18.04'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Build and Package
shell: bash
run: |
scripts/package.sh --target ${{ matrix.target }}
echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true

- name: Upload release archive
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.FLOPHA_GITHUB_TOKEN }}
files: ${{ env.ASSET }}
- name: Build and Package
shell: bash
run: |
scripts/package.sh --target ${{ matrix.target }}
echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
- name: Upload release archive
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.FLOPHA_VERSION }}
generate_release_notes: True
files: ${{ env.ASSET }}

0 comments on commit 631dd91

Please # to comment.