fix: build commands

This commit is contained in:
Lakhan Samani 2021-09-14 11:05:44 +05:30
parent 4f969a0288
commit 12efb901a1

View File

@ -38,12 +38,14 @@ jobs:
run: mv .env.sample .env run: mv .env.sample .env
- name: Package files for windows - name: Package files for windows
run: | run: |
make clean && CGO_ENABLED=1 GOOS=windows CC=/usr/bin/x86_64-w64-mingw32-gcc make make clean && \
mv build/server build/server.exe CGO_ENABLED=1 GOOS=windows CC=/usr/bin/x86_64-w64-mingw32-gcc make && \
mv build/server build/server.exe && \
zip -vr authorizer-${VERSION}-windows-amd64.zip .env app build templates zip -vr authorizer-${VERSION}-windows-amd64.zip .env app build templates
- name: Package files for linux - name: Package files for linux
run: | run: |
make clean && CGO_ENABLED=1 make make clean && \
CGO_ENABLED=1 make && \
tar cvfz authorizer-${VERSION}-linux-amd64.tar.gz .env app build templates tar cvfz authorizer-${VERSION}-linux-amd64.tar.gz .env app build templates
- name: Upload assets - name: Upload assets
run: | run: |