Skip to content

Commit

Permalink
package the fn file to tar.gz format
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmysun0815 committed Jun 17, 2022
1 parent 94a51fa commit 27a009d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Fn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
fn_linux
fn_macos
fn_windows.exe
fn_linux.tar.gz
fn_macos.tar.gz
fn_windows.tar.gz
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,23 @@ devnet: reset snapshot
build_musl_fn_linux:
docker build -t musl_fn_linux -f container/Dockerfile-fn-musl-linux .
docker run -d --rm --name fn_linux musl_fn_linux
docker cp fn_linux:/volume/target/x86_64-unknown-linux-musl/release/fn fn_linux
docker cp fn_linux:/volume/target/x86_64-unknown-linux-musl/release/fn fn
tar -czvf fn_linux.tar.gz fn
rm fn


build_musl_fn_macos_base:
docker build -t musl_fn_macos_base -f container/Dockerfile-fn-musl-macos-base .
build_musl_fn_macos:
docker build -t musl_fn_macos -f container/Dockerfile-fn-musl-macos .
docker run -d --rm --name fn_macos musl_fn_macos
docker cp fn_macos:/volume/target/x86_64-apple-darwin/release/fn fn_macos

docker cp fn_macos:/volume/target/x86_64-apple-darwin/release/fn fn
tar -czvf fn_macos.tar.gz fn
rm fn

build_musl_fn_win:
docker build -t musl_fn_win -f container/Dockerfile-fn-musl-windows .
docker run -d --rm --name fn_windows musl_fn_win
docker cp fn_windows:/volume/target/x86_64-pc-windows-gnu/release/fn.exe fn_windows.exe
docker cp fn_windows:/volume/target/x86_64-pc-windows-gnu/release/fn.exe fn.exe
tar -czvf fn_windows.tar.gz fn.exe
rm fn.ext

0 comments on commit 27a009d

Please sign in to comment.