-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move workflows in-repo instead of separately
- Loading branch information
Showing
6 changed files
with
253 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 'build-eips' | ||
|
||
description: 'Run the build-eips tool' | ||
|
||
inputs: | ||
args: | ||
description: 'Command-line arguments to pass to build-eips' | ||
required: true | ||
|
||
outputs: | ||
stdout: | ||
description: 'Standard output from build-eips' | ||
value: ${{ steps.run-build-eips.outputs.stdout }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 | ||
|
||
- name: Install build-eips | ||
shell: bash | ||
run: | | ||
rm -rf build-eips build-eips.tar.xz | ||
wget https://github.com/eips-wg/preprocessor/releases/latest/download/build-eips-ubuntu.tar.xz | ||
tar xvf build-eips-ubuntu.tar.xz | ||
- name: Install Zola | ||
shell: bash | ||
run: cargo install --locked --git https://github.com/getzola/zola.git --rev bcbcd1e7edfc4e011b0760aaaba965878144a7d3 | ||
|
||
- name: Run build-eips | ||
id: run-build-eips | ||
shell: bash | ||
env: | ||
BUILD_EIPS_ARGS: ${{ inputs.args }} | ||
run: | | ||
set -euf -o pipefail | ||
echo "stdout<<EOF" >> "$GITHUB_OUTPUT" | ||
./build-eips $BUILD_EIPS_ARGS | awk '{ print; if ($0 == "EOF") exit 1 }' | tee -a "$GITHUB_OUTPUT" | ||
echo -e "\nEOF" >> "$GITHUB_OUTPUT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters