-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (55 loc) · 1.63 KB
/
main.yml
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
56
on:
pull_request:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- 'git:v1.6.10-pluspatches https://github.com/iffy/Nim.git'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- uses: iffy/install-nim@v4
with:
version: ${{ matrix.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Inspect
shell: bash
run: |
ls -al
which nim
which nimble
- name: Package
shell: bash
run: |
tar czvf nim-1.6.10-pluspatches-${{ matrix.os }}.tar.xz nimdir/bin nimdir/compiler nimdir/compiler.nimble nimdir/config nimdir/copying.txt nimdir/dist nimdir/doc nimdir/icons nimdir/koch nimdir/koch.nim nimdir/koch.nim.cfg nimdir/lib nimdir/nimpretty nimdir/nimsuggest nimdir/testament nimdir/tests nimdir/tools
- name: List
shell: bash
run: |
tar tf nim-1.6.10-pluspatches-${{ matrix.os }}.tar.xz
- uses: actions/upload-artifact@v3
with:
name: nim-1.6.10-pluspatches-${{ matrix.os }}.tar.xz
path: nim-1.6.10-pluspatches-${{ matrix.os }}.tar.xz
publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v1
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Draft release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ls -alR artifacts
TAG="v1.6.10-$(date "+%Y%m%d-%H%M%S")"
gh release create "$TAG" --title "$TAG" --draft artifacts/**/*.tar.xz