Skip to content

Commit

Permalink
Merge pull request OSTGO#5 from Rickylss/main
Browse files Browse the repository at this point in the history
bug fix: fix github actions
  • Loading branch information
Rickylss authored Sep 20, 2022
2 parents db35f2c + a69c7a6 commit b2d96f7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Go

on:
push:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Install ninja-build
run: sudo apt install ninja-build -y

- name: Install upx
run: sudo apt install upx -y

- name: Install rpm
run: sudo apt install rpm -y

- name: build elf
run: ninja -j 0

- name: build rpm
run: ninja -j 0 rpm-amd64

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: latest${{steps.version.outputs.value}}
files: |
out/gopic-linux-amd64
out/gopic-linux-arm64
out/gopic-mac-amd64
out/gopic.exe
out/x86_64/gopic-0.0.1-1.x86_64.rpm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build.ninja
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ build rpm-amd64: rpm-build gopic-linux-amd64
build rpm-arm64: rpm-build gopic-linux-arm64
TARGET = armv8l-linux

build all: phony gopic-linux-amd64 gopic-linux-arm64 gopic-mac-amd64 gopic.exe lintoutput
build all: phony gopic-linux-amd64 gopic-linux-arm64 gopic-mac-amd64 gopic.exe

default all

0 comments on commit b2d96f7

Please sign in to comment.