Skip to content

Commit

Permalink
build: Bump logo and CI conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
pojntfx committed Sep 13, 2023
1 parent e1ed0c4 commit 57af65f
Show file tree
Hide file tree
Showing 11 changed files with 630 additions and 203 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/hydrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,16 @@ jobs:
target:
- id: test
src: .
os: golang:bullseye
os: golang:bookworm
flags: -e '--privileged -v /var/run/docker.sock:/var/run/docker.sock --net host'
cmd: GOFLAGS="-short" ./Hydrunfile test
dst: out/*
- id: go
dst: out/nonexistent
- id: go-weron
src: .
os: golang:bullseye
os: golang:bookworm
flags: -e '--privileged -v /var/run/docker.sock:/var/run/docker.sock --net host'
cmd: ./Hydrunfile go weron
dst: out/*
# FIXME: This fails with `error: reference to undefined field or method 'HandshakeContext'`
# - id: gccgo
# src: .
# os: ghcr.io/pojntfx/bagccgop-base-sid
# flags: -e '--privileged'
# cmd: ./Hydrunfile gccgo weron
# dst: out/*

steps:
- name: Maximize build space
Expand Down Expand Up @@ -61,6 +54,7 @@ jobs:
with:
name: ${{ matrix.target.id }}
path: ${{ matrix.target.dst }}

publish-linux:
runs-on: ubuntu-latest
needs: build-linux
Expand All @@ -72,12 +66,15 @@ jobs:
uses: actions/download-artifact@v2
with:
path: /tmp/out
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Publish pre-release to GitHub releases
if: ${{ github.ref == 'refs/heads/main' }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: unstable
automatic_release_tag: release-${{ steps.extract_branch.outputs.branch }}
prerelease: true
files: |
/tmp/out/*/*
Expand Down
25 changes: 3 additions & 22 deletions Hydrunfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,18 @@ if [ "$1" = "go" ]; then
apt update
apt install -y curl make docker.io

# Configure Git
git config --global --add safe.directory '*'

# Install bagop
curl -L -o /tmp/bagop "https://github.com/pojntfx/bagop/releases/latest/download/bagop.linux-$(uname -m)"
install /tmp/bagop /usr/local/bin

# Generate dependencies
make depend

# Build
CGO_ENABLED=0 bagop -j "$(nproc)" -b "$2" -x '(android/*|ios/*|plan9/*|aix/*|linux/loong64|freebsd/riscv64|wasip1/wasm)' -p "make build/$2 DST=\$DST" -d out

exit 0
fi

# gccgo
if [ "$1" = "gccgo" ]; then
# Install native dependencies
apt update
apt install -y curl docker.io

# Configure Git
git config --global --add safe.directory '*'

# Install bagccgop
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
install /tmp/bagccgop /usr/local/bin
# Generate dependencies
make depend

# Build
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle|linux/arm$|linux/arm64|linux/386|linux/amd64|linux/s390x|linux/ppc64|linux/riscv64|linux/mips64|linux/ppc64le)' -j1 -b "$2" -n -s 'make' -p "make build/$2 DST=\$DST" -d out
CGO_ENABLED=0 bagop -j "$(nproc)" -b "$2" -x '(android/*|ios/*|plan9/*|aix/*|linux/loong64|freebsd/riscv64|wasip1/wasm)' -p "make build/$2 DST=\$DST" -d out

exit 0
fi
Binary file modified docs/icon-dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
182 changes: 111 additions & 71 deletions docs/icon-dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/icon-light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 95 additions & 46 deletions docs/icon-light.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/logo-dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
238 changes: 209 additions & 29 deletions docs/logo-dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo-light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
226 changes: 203 additions & 23 deletions docs/logo-light.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/logo-readme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 57af65f

Please sign in to comment.