-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: [workflow_dispatch] | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
|
@@ -17,15 +17,13 @@ jobs: | |
git clone --depth 1 https://codeberg.org/rimgo/rimgo | ||
cd rimgo/ | ||
go mod download | ||
GOARCH=amd64 GOOS=linux go build -ldflags "-X codeberg.org/rimgo/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)" | ||
mv rimgo ../rimgo_linux_x86_64 | ||
GOARCH=amd64 GOOS=linux go build -ldflags "-X codeberg.org/rimgo/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)" | ||
mv rimgo ../rimgo_linux_x86_64 | ||
GOARCH=amd64 GOOS=windows go build -ldflags "-X codeberg.org/rimgo/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)" | ||
mv rimgo.exe ../rimgo_windows_x86_64.exe | ||
mv views/ ../ | ||
mv static/ ../ | ||
cd ../../ | ||
tar -czvf rimgo_linux_x86_64.tar.gz rimgo/rimgo_linux_x86_64 rimgo/views rimgo/static | ||
zip rimgo_windows_x86_64.zip rimgo/rimgo_windows_x86_64.exe rimgo/views/* rimgo/static/* | ||
tar -czvf rimgo_linux_x86_64.tar.gz rimgo/rimgo_linux_x86_64 rimgo/rimgo/views rimgo/static | ||
zip rimgo_windows_x86_64.zip rimgo/rimgo_windows_x86_64.exe rimgo/rimgo/views/* rimgo/rimgo/static/* | ||
mv rimgo_linux_x86_64.tar.gz binaries/ | ||
mv rimgo_windows_x86_64.zip binaries/ | ||
rm -fr rimgo/ | ||
|