Skip to content

Commit

Permalink
fix: allow use setup-teback from other repos
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP authored and maxirmx committed Feb 6, 2024
1 parent fc698d0 commit 5cf0465
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/actions/setup-tebako/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup environment
if: inputs.cache != 'off'
shell: bash
run: |
cat common.env >> $GITHUB_ENV
echo "VERBOSE=${{ inputs.verbose }}" >> $GITHUB_ENV
- name: Prepare compiler
- name: Prepare compiler environment
shell: bash
run: |
OS=$(uname -s)
Expand Down Expand Up @@ -145,10 +138,21 @@ runs:
shell: bash
run: |
brew update
# Already installed: openssl@1.1, libevent, libsodium, lz4, xz, zlib, gdbm, ncurses, pkg-config, libyaml
# Already installed: openssl@1.1, libevent, libsodium, lz4, xz, zlib, gdbm, ncurses, pkg-config, libyaml, curl
brew install bison flex binutils libffi double-conversion boost jemalloc fmt glog gnu-sed bash
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
- name: Setup environment
if: inputs.cache != 'off'
shell: bash
run: |
if [ ! -e ./common.env ]; then
curl https://raw.githubusercontent.com/tamatebako/tebako/main/common.env >> $GITHUB_ENV
else
cat common.env >> $GITHUB_ENV
fi
echo "VERBOSE=${{ inputs.verbose }}" >> $GITHUB_ENV
- name: Install Ruby
if: inputs.ruby_version != 'skip' && env.ALPINE_VER == ''
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 5cf0465

Please sign in to comment.