Skip to content

Commit 05b7e64

Browse files
committed
migrate off of travis-ci
1 parent aa67570 commit 05b7e64

File tree

7 files changed

+80
-35
lines changed

7 files changed

+80
-35
lines changed

.github/workflows/linux.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: linux
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
perl:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
cip_tag:
19+
- static
20+
- "5.33"
21+
- "5.32"
22+
- "5.30"
23+
- "5.28"
24+
- "5.26"
25+
- "5.24"
26+
- "5.22"
27+
- "5.20"
28+
29+
env:
30+
CIP_TAG: ${{ matrix.cip_tag }}
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Bootstrap CIP
36+
run: |
37+
curl https://raw.githubusercontent.com/plicease/cip/main/bin/github-bootstrap | bash
38+
39+
- name: Cache-Key
40+
id: cache-key
41+
run: |
42+
echo -n '::set-output name=key::'
43+
cip cache-key
44+
45+
- name: Cache CPAN modules
46+
uses: actions/cache@v2
47+
with:
48+
path: ~/.cip
49+
key: ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }}
50+
restore-keys: |
51+
${{ runner.os }}-build-${{ steps.cache-key.outputs.key }}
52+
53+
- name: Start-Container
54+
run: |
55+
cip start
56+
57+
- name: Diagnostics
58+
run: |
59+
cip diag
60+
61+
- name: Install-Dependencies
62+
run: |
63+
cip install
64+
65+
- name: Build + Test
66+
run: |
67+
cip script

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
brew install perl
2828
curl https://cpanmin.us | perl - App::cpanminus -n
29-
echo "##[add-path]/Users/runner/perl5/bin"
29+
echo "/Users/runner/perl5/bin" >> $GITHUB_PATH
3030
3131
- name: perl -V
3232
run: perl -V

.github/workflows/windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
runs-on: windows-latest
2121

2222
steps:
23+
- name: Set git to use LF
24+
run: |
25+
git config --global core.autocrlf false
26+
git config --global core.eol lf
27+
2328
- uses: actions/checkout@v2
2429

2530
- name: Prepare for cache
@@ -40,7 +45,10 @@ jobs:
4045
- name: Set up Perl
4146
run: |
4247
choco install strawberryperl
43-
echo "##[add-path]C:\cx\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
48+
echo "C:\cx\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
49+
echo "C:\strawberry\c\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
50+
echo "C:\strawberry\perl\site\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
51+
echo "C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4452
- name: perl -V
4553
run: perl -V
4654
- name: Install Static Dependencies

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Const::Introspect::C [![Build Status](https://travis-ci.org/PerlFFI/Const-Introspect-C.svg)](http://travis-ci.org/PerlFFI/Const-Introspect-C) ![windows](https://github.com/PerlFFI/Const-Introspect-C/workflows/windows/badge.svg) ![macos](https://github.com/PerlFFI/Const-Introspect-C/workflows/macos/badge.svg)
1+
# Const::Introspect::C ![linux](https://github.com/PerlFFI/Const-Introspect-C/workflows/linux/badge.svg) ![windows](https://github.com/PerlFFI/Const-Introspect-C/workflows/windows/badge.svg) ![macos](https://github.com/PerlFFI/Const-Introspect-C/workflows/macos/badge.svg)
22

33
Find and evaluate C/C++ constants for use in Perl
44

dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ version = 0.01
77

88
[@Author::Plicease]
99
:version = 2.49
10-
travis_status = 1
1110
release_tests = 1
1211
installer = Author::Plicease::MakeMaker
1312
github_user = PerlFFI
1413
default_branch = main
1514
test2_v0 = 1
15+
workflow = linux
1616
workflow = windows
1717
workflow = macos
1818
irc = irc://irc.perl.org/#native

t/00_diag.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if(@keys > 0)
6464
spacer;
6565
}
6666

67-
diag sprintf $format, 'perl ', $];
67+
diag sprintf $format, 'perl', "$] $^O $Config{archname}";
6868

6969
foreach my $module (sort @modules)
7070
{

0 commit comments

Comments
 (0)