Skip to content

Commit

Permalink
perf: workflows slimmed down
Browse files Browse the repository at this point in the history
  • Loading branch information
097115 committed Feb 4, 2023
1 parent e4fca96 commit dcb34d1
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 221 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

permissions:
contents: write

on:
push:
tags:
- "v*"

jobs:
publish:
name: Deploying ${{ matrix.build_target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
build_target: [macos, linux32, linux64]
include:
- build_target: macos
os: macos-latest
artifact_suffix: macos-x86_64
target_os: darwin
target_arch: amd64
cflags: "-mmacosx-version-min=10.11"
ldflags: "-mmacosx-version-min=10.11"
- build_target: linux32
os: ubuntu-latest
artifact_suffix: linux-x86_32
target_arch: 386
target_os: linux
- build_target: linux64
os: ubuntu-latest
artifact_suffix: linux-x86_64
target_arch: amd64
target_os: linux
steps:
- name: Set up access
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- name: Set up Linux deps
if: matrix.os == 'ubuntu-latest'
run: sudo apt update
- name: Set up Linux32 deps
if: matrix.target_arch == '386'
run: |
sudo apt update
sudo apt-get install gcc-multilib
- name: Build
run: go build -o ticker-${{ matrix.artifact_suffix }}
- name: Package
shell: bash
run: |
ls -la
tar czvf ticker-${{ matrix.artifact_suffix }}.tar.gz ticker-${{ matrix.artifact_suffix }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ticker-${{ matrix.artifact_suffix }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/close-stale-issue.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/lint-commit.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/lint.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/release.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/test-contract.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit dcb34d1

Please sign in to comment.