File tree Expand file tree Collapse file tree 5 files changed +69
-8
lines changed
Expand file tree Collapse file tree 5 files changed +69
-8
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ workflow_call :
3+ pull_request :
4+ paths :
5+ - pre-reqs.ts
6+ - .github/workflows/ci-pre-reqs.yml
7+
8+ concurrency :
9+ group : ${{ github.ref }}/2
10+ cancel-in-progress : true
11+
12+ jobs :
13+ pre-reqs :
14+ continue-on-error : true
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ container :
19+ - debian:buster-slim
20+ - debian:bullseye-slim
21+ - debian:bookworm-slim
22+ - archlinux:latest
23+ # - ubuntu:bionic glibc too old
24+ - ubuntu:focal
25+ - ubuntu:jammy
26+ - ubuntu:kinetic
27+ # - ubuntu:lunar glibc too old
28+ # - ubuntu:trusty
29+ # - ubuntu:xenial glibc too old
30+ - fedora:latest
31+ # - nixos/nix:latest can’t exec
32+ # - alpine:latest tea binary doesn’t actually end up on the system (wtf)
33+ container : ${{ matrix.container }}
34+ steps :
35+ - uses : actions/checkout@v3
36+ - uses : ./
37+ - run : sh -x ./install-pre-reqs.sh
38+ - run : tea -X node -e 'console.log(1)'
Original file line number Diff line number Diff line change 88 workflow_call :
99
1010concurrency :
11- group : ${{ github.ref }}
11+ group : ${{ github.ref }}/1
1212 cancel-in-progress : true
1313
1414jobs :
7575 steps :
7676 - uses : actions/checkout@v3
7777
78- # required for somethings
79- - run : |
80- apt-get update
81- apt-get --yes install libc-dev libstdc++-8-dev libgcc-8-dev
82- if: ${{ matrix.container != '' }}
83-
8478 - uses : ./
8579 id : tea
8680 with :
Original file line number Diff line number Diff line change 22
33[ ` install.sh ` ] ( ./install.sh ) is delivered when you ` curl tea.xyz ` .
44
5- # GitHub Action 0.7.2
5+ # GitHub Action 0.8.0
66
77This repository also provides the ` tea ` GitHub Action.
88
Original file line number Diff line number Diff line change @@ -105,6 +105,15 @@ async function go() {
105105 //TODO a flag so it returns 0 so we can not just swallow all errors lol
106106 }
107107
108+ if ( os . platform ( ) != 'darwin' ) {
109+ const sh = path . join ( path . dirname ( __filename ) , "install-pre-reqs.sh" )
110+ if ( process . getuid ( ) == 0 ) {
111+ execSync ( sh )
112+ } else {
113+ execSync ( `sudo ${ sh } ` )
114+ }
115+ }
116+
108117 const target = process . env [ 'INPUT_TARGET' ]
109118 if ( target ) {
110119 execSync ( `${ teafile } ${ target } ` , { stdio : "inherit" , env} )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # installs linux pre-reqs with the system packager
3+ # PR your system!
4+
5+ if test -f /etc/debian_version; then
6+ apt-get --yes update
7+
8+ case $( cat /etc/debian_version) in
9+ jessie/sid|8.* |stretch/sid|9.* )
10+ apt-get --yes install libc-dev libstdc++-4.8-dev libgcc-4.7-dev;;
11+ buster/sid|10.* )
12+ apt-get --yes install libc-dev libstdc++-8-dev libgcc-8-dev;;
13+ bullseye/sid|11.* )
14+ apt-get --yes install libc-dev libstdc++-10-dev libgcc-9-dev;;
15+ bookworm/sid|12.* |* )
16+ apt-get --yes install libc-dev libstdc++-11-dev libgcc-10-dev;;
17+ esac
18+ elif test -f /etc/fedora-release; then
19+ yum --assumeyes install libatomic
20+ fi
You can’t perform that action at this time.
0 commit comments