forked from stschiff/sequenceTools
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (54 loc) · 1.84 KB
/
release.yml
File metadata and controls
55 lines (54 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release
on:
release:
types: [created]
jobs:
build-on-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Copy executable
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do
docker cp linuxcontainer:/root/.local/bin/$TOOL $TOOL-linux
done
- name: update-release
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do
bash .github/workflows/upload-github-release-asset.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=stschiff repo=sequenceTools tag=$(basename $GITHUB_REF) filename=$TOOL-linux
done
build-on-mac:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
enable-stack: true
- name: Build
run: stack install
- name: Update-release
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do
cp ~/.local/bin/$TOOL $TOOL-macOS
bash .github/workflows/upload-github-release-asset.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=stschiff repo=sequenceTools tag=$(basename $GITHUB_REF) filename=$TOOL-macOS
done
build-on-windows:
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
enable-stack: true
- name: Build
run: stack install
- name: Update-release
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do
cp ~/.local/bin/$TOOL $TOOL-windows
bash .github/workflows/upload-github-release-asset.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=stschiff repo=sequenceTools tag=$(basename $GITHUB_REF) filename=$TOOL-windows
done