-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extract binary actions: Initial
- Loading branch information
1 parent
d615339
commit c139641
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release | ||
on: | ||
push: | ||
# workflow_run: | ||
# workflows: | ||
# - "Build and Publish Docker" | ||
# - "Unit Test" | ||
# types: | ||
# - "completed" | ||
# branches: | ||
# - "main" | ||
# - "develop" | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- target: "gnu" | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- target: "musl" | ||
platforms: linux/amd64,linux/arm64 | ||
tags-suffix: "-slim" | ||
|
||
- target: "gnu-s2n" | ||
platforms: linux/amd64,linux/arm64 | ||
tags-suffix: "-s2n" | ||
|
||
steps: | ||
- run: echo 'The relese triggering workflows passed' | ||
|
||
- name: "docker pull and extract binary from docker image" | ||
# if: ${{ github.ref_name == 'develop' }} | ||
run: | | ||
docker run --platform=${{ matrix.platforms }} --name=rpxy-nightly ghcr.io/junkurihara/rust-rpxy:nightly${{ matrix.tags-suffix }} /rpxy/bin/rpxy --help | ||
if [ ${{ matrix.platforms}} = "linux/amd64" ];then PLATFORM_MAP="x86_64";else PLATFORM_MAP="aarch64";fi | ||
docker cp pxy-nightly:/rpxy/bin/rpxy /tmp/rpxy-nightly-${PLATFORM_MAP}-unknown-linux-${{ matrix.target }}-${{ matrix.tags-suffix }} | ||
ls /tmp | ||
# on-failure: | ||
# runs-on: ubuntu-latest | ||
# if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
# steps: | ||
# - run: echo 'The release triggering workflows failed' |