Skip to content

Commit

Permalink
ci: add base
Browse files Browse the repository at this point in the history
  • Loading branch information
mibmo committed Jun 10, 2022
1 parent f09ce66 commit b0f63c7
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build static binaries

on: push
# on:
# release:
# types: [created]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Download build tools
run: sudo apt-get install build-essential libtool autopoint
- name: Checkout repository
uses: actions/checkout@v3
- name: Download dependencies
run: git submodule update --init --recursive
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.18.2'
- name: Info
run: tree
- name: Build dependencies
run: go run build.go -verbose build-all
- name: Show libs
run: go run build.go show-libs
- name: Info
run: tree tor
- name: Upload tor binary
uses: actions/upload-artifact@v3
with:
name: tor-${{ matrix.os }}
path:
tor/src/app/tor

0 comments on commit b0f63c7

Please sign in to comment.