Skip to content

Commit

Permalink
Tweaked somethings
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Sep 10, 2023
1 parent 9de3002 commit cf28993
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/rimgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]

Expand All @@ -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/
Expand Down

0 comments on commit cf28993

Please sign in to comment.