Skip to content

Commit

Permalink
Install asciidoctor using ruby bundle
Browse files Browse the repository at this point in the history
Motivation: fixate the version of asciidoctor
  • Loading branch information
nikitabobko committed May 29, 2024
1 parent 86c8ba8 commit b5cb6c5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
path: .bin
key: ${{ runner.os }}-${{ runner.arch }}
- name: Install deps
run: brew install xcodegen gsed asciidoctor xcbeautify swiftlint bash fish wget
run: |
brew install xcodegen gsed xcbeautify swiftlint bash fish wget
bundle install
- name: Build Debug
# "-" means "Sign to run locally". There is no aerospace-codesign-certificate in GH Actions
run: ./build-debug.sh --codesign-identity -
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"
gem 'asciidoctor', '2.0.23'
gem 'pygments.rb', '3.0'
16 changes: 16 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
GEM
remote: https://rubygems.org/
specs:
asciidoctor (2.0.23)
pygments.rb (3.0.0)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
asciidoctor (= 2.0.23)
pygments.rb (= 3.0)

BUNDLED WITH
2.5.11
4 changes: 2 additions & 2 deletions build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build-site() {
cd .site
# Delete "aerospace " prefifx in synopsis
sed -i -E '/tag::synopsis/, /end::synopsis/ s/^(aerospace | {10})//' aerospace*
asciidoctor ./*.adoc
bundle exec asciidoctor ./*.adoc
rm -rf ./*.adoc
rm -rf aerospace* # Drop man pages
cd - > /dev/null
Expand All @@ -32,7 +32,7 @@ build-site() {
build-man() {
cp-docs .man
cd .man
asciidoctor -b manpage aerospace*.adoc
bundle exec asciidoctor -b manpage aerospace*.adoc
rm -rf *.adoc
cd - > /dev/null
}
Expand Down
2 changes: 1 addition & 1 deletion script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set -o pipefail # Any command failed in the pipe fails the whole pipe
setup() {
export BREW_PREFIX="$(brew --prefix)"
tmp=(
${BREW_PREFIX}/opt/asciidoctor/bin
${BREW_PREFIX}/opt/gsed/libexec/gnubin
${BREW_PREFIX}/opt/tree/bin
${BREW_PREFIX}/opt/xcodegen/bin
Expand All @@ -16,6 +15,7 @@ setup() {
${BREW_PREFIX}/opt/fishfish/bin
${BREW_PREFIX}/opt/bash/bin
${BREW_PREFIX}/opt/wget/bin
${BREW_PREFIX}/opt/ruby@3/bin # asciidoctor
/bin # bash
/usr/bin # xcodebuild, zip, arch
)
Expand Down

0 comments on commit b5cb6c5

Please sign in to comment.