m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-11 06:33:49 -05:00

Update release workflow and fix bug with binaries not being uploaded
Some checks are pending
Deploy github pages / build (push) Waiting to run
Deploy github pages / deploy (push) Blocked by required conditions
Nightly Release / build-binary (map[bin:cup command:build name:cup-linux-aarch64 os:ubuntu-latest release_for:linux-aarch64 target:aarch64-unknown-linux-musl]) (push) Waiting to run
Nightly Release / build-binary (map[bin:cup command:build name:cup-linux-x86_64 os:ubuntu-latest release_for:linux-x86_64 target:x86_64-unknown-linux-musl]) (push) Waiting to run
Nightly Release / build-image (push) Waiting to run

This commit is contained in:
Sergio
2024-07-17 16:15:26 +03:00
committed by GitHub
parent 1cf4cf2394
commit 923e81d75d

View File

@@ -18,21 +18,10 @@ jobs:
build-binary: build-binary:
strategy: strategy:
matrix: matrix:
platform: arch:
- release_for: linux-aarch64 - aarch64
os: ubuntu-latest - x86_64
target: aarch64-unknown-linux-musl runs-on: ubuntu-latest
bin: cup
name: cup-linux-aarch64
command: build
- release_for: linux-x86_64
os: ubuntu-latest
target: x86_64-unknown-linux-musl
bin: cup
name: cup-linux-x86_64
command: build
runs-on: ${{ matrix.platform.os }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -44,13 +33,13 @@ jobs:
run: cargo install cross --git https://github.com/cross-rs/cross run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build binary - name: Build binary
run: cross ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} --release run: cross build --target ${{ matrix.arch }}-unknown-linux-musl --release
- name: Upload binary - name: Upload binary
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.platform.name }} name: cup-linux-${{ matrix.arch }}
path: target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} path: target/${{ matrix.arch }}-unknown-linux-musl/release/cup
build-image: build-image:
needs: get-tag needs: get-tag
@@ -98,6 +87,11 @@ jobs:
name: cup-linux-x86_64 name: cup-linux-x86_64
path: cup-linux-x86_64 path: cup-linux-x86_64
- name: Extract and rename binaries
run: |
unzip cup-linux-aarch64.zip && mv cup cup-linux-aarch64
unzip cup-linux-x86_64.zip && mv cup cup-linux-x86_64
- name: Create release - name: Create release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
env: env:
@@ -107,5 +101,5 @@ jobs:
tag_name: ${{ needs.get-tag.outputs.tag }} tag_name: ${{ needs.get-tag.outputs.tag }}
name: ${{ needs.get-tag.outputs.tag }} name: ${{ needs.get-tag.outputs.tag }}
files: | files: |
cup-linux-aarch64/cup-linux-aarch64 cup-linux-aarch64
cup-linux-x86_64/cup-linux-x86_64 cup-linux-x86_64