Skip to content

Commit

Permalink
fix(ci): update to match bandsnatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovyerus committed Nov 14, 2023
1 parent 0ae249d commit 6e5df87
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ jobs:
- name: Extract binaries
run: |
id=$(docker create --platform=linux/${{ matrix.platform.target }} ghcr.io/ovyerus/gfh:nightly)
docker cp $id:/gfh/gfh - > ./gfh-${{ matrix.platform.name }}
docker cp $id:/gfh/gfh-keygen - > ./gfh-keygen-${{ matrix.platform.name }}
docker cp $id:/gfh/gfh ./gfh
docker cp $id:/gfh/gfh-keygen ./gfh-keygen
docker rm -v $id
- name: Upload ${{ matrix.platform.name }}
uses: actions/upload-artifact@v2
with:
name: gfh-linux-${{ matrix.platform.name }}-musl
name: gfh-linux-${{ matrix.platform.name }}
path: |
./gfh-${{ matrix.platform.name }}
./gfh-keygen-${{ matrix.platform.name }}
./gfh
./gfh-keygen
build-macos:
runs-on: macos-11
Expand All @@ -98,7 +98,6 @@ jobs:
profile: minimal

- uses: Swatinem/rust-cache@v2
if: "!startsWith(github.ref, 'refs/tags/')"
with:
key: ${{ matrix.target }}

Expand Down Expand Up @@ -129,7 +128,6 @@ jobs:
profile: minimal

- uses: Swatinem/rust-cache@v2
if: "!startsWith(github.ref, 'refs/tags/')"

- name: Build
uses: actions-rs/cargo@v1
Expand All @@ -139,7 +137,7 @@ jobs:

- uses: actions/upload-artifact@v2
with:
name: "gfh-windows-x86_64-msvc"
name: "gfh-windows-x86_64"
path: |
target/x86_64-pc-windows-msvc/release/gfh.exe
target/x86_64-pc-windows-msvc/release/gfh-keygen.exe
Expand All @@ -162,14 +160,11 @@ jobs:
mkdir out && cd out
declare -a arr=(
"windows-x86_64-msvc"
"windows-x86_64"
"macos-x86_64"
"macos-aarch64"
"linux-x86_64-musl"
"linux-i686-musl"
"linux-armv7-musleabihf"
"linux-arm-musleabi"
"linux-arm-musleabihf"
"linux-x86_64"
"linux-aarch64"
)
for target in "${arr[@]}"
Expand All @@ -181,7 +176,7 @@ jobs:
7z -y a $filename $inputfiles
else
filename="gfh-$target.tar.gz"
tar czf $filname $inputfiles
tar czf $filename $inputfiles
fi
sha256sum "$filename" >> "checksums.txt"
Expand Down

0 comments on commit 6e5df87

Please sign in to comment.