Skip to content

Commit 7cf5c9f

Browse files
authored
Merge pull request #509 from mcorino/develop
Improve CI builds
2 parents 714050b + d9ea8dc commit 7cf5c9f

8 files changed

Lines changed: 41 additions & 10 deletions

File tree

.github/actions/linux-docker-release-verify/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ inputs:
2121
description: '1 if verifying pre-release,0 otherwise'
2222
required: true
2323
default: '0'
24+
ghtoken:
25+
description: 'GitHub token'
26+
required: true
2427

2528
runs:
2629
using: 'docker'
@@ -31,3 +34,4 @@ runs:
3134
- ${{ inputs.test }}
3235
- ${{ inputs.release }}
3336
- ${{ inputs.pre }}
37+
- ${{ inputs.ghtoken }}

.github/actions/linux-docker-release-verify/entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
22

3-
_distro=$1
3+
export distro=$1
44
_ruby=$2
55
_test=$3
66
_release=$4
77
_pre=$5
8+
_ghtok=$6
89

9-
./tools/scripts/docker/setup-$_distro.sh test
10+
./tools/scripts/docker/setup-$distro.sh test
1011

1112
# Show some information about the system.
1213
uname -a
@@ -17,7 +18,7 @@ cat /etc/os-release
1718
if [ "$_ruby" == "system" ]; then
1819
# testing with system ruby
1920

20-
./tools/scripts/docker/setup-$_distro-system-ruby.sh
21+
./tools/scripts/docker/setup-$distro-system-ruby.sh
2122

2223
else
2324
# testing with latest ruby
@@ -32,6 +33,7 @@ if [ "$_pre" == "1" ]; then
3233
else
3334
export __WXRUBY_PRERELEASE=""
3435
fi
36+
export GITHUB_TOKEN="$_ghtok"
3537

3638
if [ "$_test" == "1" ]; then
3739

.github/actions/linux-docker-release/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
distro=$1
3+
export distro=$1
44
ruby=$2
55

66
./tools/scripts/docker/setup-$distro.sh

.github/actions/linux-docker-verify/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
22

3-
_distro=$1
3+
export distro=$1
44
_ruby=$2
55

66
export WXRUBY_TEST_EXCLUDE='test_intl:test_media_ctrl'
77

8-
./tools/scripts/docker/setup-$_distro.sh test
8+
./tools/scripts/docker/setup-$distro.sh test
99

1010
# Show some information about the system.
1111
uname -a
@@ -16,7 +16,7 @@ cat /etc/os-release
1616
if [ "$_ruby" == "system" ]; then
1717
# testing with system ruby
1818

19-
./tools/scripts/docker/setup-$_distro-system-ruby.sh
19+
./tools/scripts/docker/setup-$distro-system-ruby.sh
2020

2121
./tools/scripts/docker/build-wxruby3.sh 2>&1 | tee -a build-wxruby3.log
2222

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
target_ruby: system
5858
- os: ubuntu-24.04
5959
arch: x86_64
60-
target_distro: ubuntu
60+
target_distro: linuxmint
6161
target_docker_image: ['linuxmintd', 'mint22.3-amd64']
6262
target_base: 'latest'
6363
target_ruby: system

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,13 @@ jobs:
448448
target_ruby: 'system'
449449
- os: ubuntu-24.04
450450
arch: x86_64
451-
target_distro: ubuntu
451+
target_distro: linuxmint
452452
target_docker_image: ['linuxmintd', 'mint22.3-amd64']
453453
target_base: 'latest'
454454
target_ruby: 'system'
455455
- os: ubuntu-24.04
456456
arch: x86_64
457-
target_distro: ubuntu
457+
target_distro: linuxmint
458458
target_docker_image: ['linuxmintd', 'mint22.3-amd64']
459459
target_base: 'latest'
460460
target_ruby: 'latest'
@@ -504,6 +504,7 @@ jobs:
504504
test: ${{ case(github.event_name == 'workflow_dispatch', '1', '0') }}
505505
release: ${{ env.WXRUBY_RELEASE }}
506506
pre: ${{ env.WXRUBY_PRERELEASE }}
507+
ghtoken: ${{ secrets.GITHUB_TOKEN }}
507508

508509
release-docker-binpkg-prev-ver:
509510
needs: release-docker-binpkg
@@ -741,6 +742,7 @@ jobs:
741742
test: ${{ case(github.event_name == 'workflow_dispatch', '1', '0') }}
742743
release: ${{ env.WXRUBY_RELEASE }}
743744
pre: ${{ env.WXRUBY_PRERELEASE }}
745+
ghtoken: ${{ secrets.GITHUB_TOKEN }}
744746

745747
verify-gem:
746748
needs:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$1" == "remove" ]; then
4+
apt-get remove -y ruby ruby-dev
5+
else
6+
apt-get install -y ruby ruby-dev ruby-bundler openssl libssl-dev
7+
fi
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
apt-get update
4+
apt full-upgrade -y
5+
apt-get install -y git make gcc gpg xvfb xfonts-75dpi curl procps bzip2
6+
if [ "$1" == "test" ]; then
7+
source /etc/os-release
8+
case $VERSION_ID in
9+
24.04|26.04)
10+
apt-get install -y 'libgtk-3-[0-9]+' 'libwebkit2gtk-4.1-[0-9]+' 'libgspell-1-[0-9]+' libnotify4 'libsecret-1-[0-9]+' curl
11+
;;
12+
*)
13+
apt-get install -y 'libgtk-3-[0-9]+' 'libwebkit2gtk-4.0-[0-9]+' 'libgspell-1-[0-9]+' libnotify4 'libsecret-1-[0-9]+' curl
14+
;;
15+
esac
16+
fi

0 commit comments

Comments
 (0)