-
Notifications
You must be signed in to change notification settings - Fork 11
98 lines (97 loc) · 3.27 KB
/
Copy pathlinux.yml
File metadata and controls
98 lines (97 loc) · 3.27 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
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
name: Linux
on:
push:
branches:
- '**'
- '!dependabot/**'
tags:
- '**'
pull_request:
jobs:
test:
name: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image:
- debian-13
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install dependencies to generate configure
run: |
sudo apt update
sudo apt install -y -V \
autoconf \
libtool
- name: Generate configure
run: |
./autogen.sh
- name: Build Docker image
run: |
docker compose build ${{ matrix.image }}
- name: Run Docker image
run: |
docker compose run ${{ matrix.image }}
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.image }}
path: |
*.tar.*
*.sum
# Release
- name: Extract tag
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
id: tag
run: |
tag=$(echo ${{ github.ref }} | sed -e 's,^refs/tags/,,')
echo ::set-output name=name::${tag}
- uses: actions/setup-ruby@v1
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
- name: Extract the news for the current release
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
run: |
ruby extract-news.rb ${{ steps.tag.outputs.name }} | tee news-current.md
- uses: actions/create-release@v1
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
id: create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.tag.outputs.name }}
body_path: news-current.md
- uses: actions/upload-release-asset@v1
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: libgcroots-${{ steps.tag.outputs.name }}.tar.gz
asset_name: libgcroots-${{ steps.tag.outputs.name }}.tar.gz
asset_content_type: application/gzip
- uses: actions/upload-release-asset@v1
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: libgcroots-${{ steps.tag.outputs.name }}.tar.bz2
asset_name: libgcroots-${{ steps.tag.outputs.name }}.tar.bz2
asset_content_type: application/x-bzip2
- uses: actions/upload-release-asset@v1
if: |
startsWith(github.ref, 'refs/tags/') && matrix.image == 'debian-10'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: libgcroots-${{ steps.tag.outputs.name }}.sum
asset_name: libgcroots-${{ steps.tag.outputs.name }}.sum
asset_content_type: text/plain