Skip to content

Commit d1523f3

Browse files
dsjkvf097115
authored andcommitted
CI: introduced
1 parent a791da7 commit d1523f3

File tree

2 files changed

+50
-17
lines changed

2 files changed

+50
-17
lines changed

.github/workflows/ci.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CD
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- "*"
10+
11+
jobs:
12+
publish:
13+
name: Deploying ${{ matrix.build_target }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
build_target: [linux64]
18+
include:
19+
- build_target: linux64
20+
os: ubuntu-latest
21+
artifact_suffix: linux-x86_64
22+
target_arch: amd64
23+
target_os: linux
24+
env:
25+
DESTDIR: ./${{ matrix.artifact_suffix }}
26+
steps:
27+
- name: Set up access
28+
uses: actions/checkout@v2
29+
- name: Set up Go
30+
uses: actions/setup-go@v2
31+
- name: Set up Linux deps
32+
if: matrix.os == 'ubuntu-latest'
33+
run: |
34+
sudo apt update
35+
sudo apt install scdoc
36+
- name: Build
37+
run: GOOS=${{ matrix.target_os }} GOARCH=${{ matrix.target_arch }} CGO_ENABLED=1 CGO_CFLAGS=${{ matrix.cflags }} CGO_LDFLAGS=${{ matrix.ldflags }} make
38+
- name: Install
39+
run: make install
40+
- name: Package
41+
shell: bash
42+
run: |
43+
ls -la
44+
tar czvf aerc-${{ matrix.artifact_suffix }}.tar.gz ${{ matrix.artifact_suffix }}/
45+
- name: Release
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
files: aerc-${{ matrix.artifact_suffix }}.tar.gz
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/macos.yml

-17
This file was deleted.

0 commit comments

Comments
 (0)