Welcome to mirror list, hosted at ThFree Co, Russian Federation.

make_release.yml « workflows « .github - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7cce44cdf593c64f0bc10c2e21209277a680256e (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: Create release if everything passes

on:
  push:
    branches:
    - develop
  pull_request:
  schedule:
  - cron: '0 0 1 * *'

jobs:
  publish-binaries:
    name: "Publish Binaries"
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      
      - name: 'Wait for status checks'
        id: waitforstatuschecks
        uses: "WyriHaximus/github-action-wait-for-status@v1.2"
        with:
          ignoreActions: "Publish Binaries"
          checkInterval: 60
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

      - name: Download Linux artifacts
        uses: dawidd6/action-download-artifact@v2
        if: steps.waitforstatuschecks.outputs.status == 'success'
        with:
          github_token: ${{secrets.GITHUB_TOKEN}}
          workflow: unittests_linux.yml
          path: artifacts
    
      - name: Download Mac OS artifacts
        uses: dawidd6/action-download-artifact@v2
        if: steps.waitforstatuschecks.outputs.status == 'success'
        with:
          github_token: ${{secrets.GITHUB_TOKEN}}
          workflow: unittests_macos.yml
          path: artifacts
    
      - name: Download Windows artifacts
        uses: dawidd6/action-download-artifact@v2
        if: steps.waitforstatuschecks.outputs.status == 'success'
        with:
          github_token: ${{secrets.GITHUB_TOKEN}}
          workflow: unittests_windows.yml
          path: artifacts
    
#      - name: Delete Tag
#        uses: dev-drprasad/delete-tag-and-release@v0.1.2
#        with:
#          delete_release: true
#          tag_name: last_all_tests_passing
#        env:
#          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: all_tests_passing_${{ github.sha }}
          release_name: All tests passed ${{ github.sha }}
          body: |
            ```
            ${{ github.event.head_commit.message }}
            ```
            
            Prebuilt binaries with development headers and documentation for common platforms are in Assets below:
          draft: false
          prerelease: true
          
      - name: Upload Linux 1
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Linux error_code g++ prebuilt binaries/llfio-v2.0-binaries-linux-x64.tgz
          asset_name: llfio-v2.0-binaries-ubuntu18.04-x64-error_code.tgz
          asset_content_type: application/gzip
          
      - name: Upload Linux 2
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Linux status_code g++ prebuilt binaries/llfio-v2.0-binaries-linux-x64.tgz
          asset_name: llfio-v2.0-binaries-ubuntu18.04-x64-status_code.tgz
          asset_content_type: application/gzip
          
      - name: Upload Linux 3
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Linux error_code arm-linux-gnueabihf-g++ prebuilt binaries/llfio-v2.0-binaries-linux-armhf.tgz
          asset_name: llfio-v2.0-binaries-ubuntu18.04-armhf-error_code.tgz
          asset_content_type: application/gzip
          
      - name: Upload Linux 4
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Linux status_code arm-linux-gnueabihf-g++ prebuilt binaries/llfio-v2.0-binaries-linux-armhf.tgz
          asset_name: llfio-v2.0-binaries-ubuntu18.04-armhf-status_code.tgz
          asset_content_type: application/gzip

      - name: Upload MacOS 1
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Mac OS error_code prebuilt binaries/llfio-v2.0-binaries-darwin-x64.tgz
          asset_name: llfio-v2.0-binaries-darwin-10.15-x64-error_code.tgz
          asset_content_type: application/gzip
          
      - name: Upload MacOS 2
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Mac OS status_code prebuilt binaries/llfio-v2.0-binaries-darwin-x64.tgz
          asset_name: llfio-v2.0-binaries-darwin-10.15-x64-status_code.tgz
          asset_content_type: application/gzip

      - name: Upload Windows 1
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Windows VS2019 error_code prebuilt binaries/llfio-v2.0-binaries-win64.zip
          asset_name: llfio-v2.0-binaries-win64-vs2019-error_code.zip
          asset_content_type: application/zip
          
      - name: Upload Windows 2
        uses: actions/upload-release-asset@v1
        if: steps.waitforstatuschecks.outputs.status == 'success'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: artifacts/Windows VS2019 status_code prebuilt binaries/llfio-v2.0-binaries-win64.zip
          asset_name: llfio-v2.0-binaries-win64-vs2019-status_code.zip
          asset_content_type: application/zip