summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-05 12:56:19 -0400
committerAnthony Green <green@moxielogic.com>2022-09-05 12:56:19 -0400
commit2a024088801403ca0c579d20c3decb8dc1453df1 (patch)
treef6ae5854da7cc82a5fbc45ebf4ce33edaaaaabbf /.github
parente4c5d46b0abaa8a12e97f0e0673e3efdda59fab8 (diff)
downloadlibffi-2a024088801403ca0c579d20c3decb8dc1453df1.tar.gz
Use GitHub SHA for rlgl ID
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 3 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 17e36a7..93b6552 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -172,8 +172,7 @@ jobs:
wget -qO - https://rl.gl/cli/rlgl-linux-amd64.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;
./rlgl l --key=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI https://rl.gl
- ID=$(./rlgl start)
- ./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git libffi.log
+ ./rlgl e --id=${GITHUB_SHA:0:8} --policy=https://github.com/libffi/rlgl-policy.git libffi.log
exit $?
build:
@@ -209,8 +208,7 @@ jobs:
make -j 4
TERM=none DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci make check || true
./rlgl/rlgl.exe l --key=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI https://rl.gl
- ID=$(./rlgl/rlgl.exe start)
- ./rlgl/rlgl.exe e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
+ ./rlgl/rlgl.exe e --id=${GITHUB_SHA:0:8} --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
build-msvc:
@@ -252,6 +250,5 @@ jobs:
cp $(find . -name 'libffi-?.dll') x86_64-pc-cygwin/testsuite/
TERM=none DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci make check || true
./rlgl/rlgl.exe l --key=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI https://rl.gl
- ID=$(./rlgl/rlgl.exe start)
- ./rlgl/rlgl.exe e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
+ ./rlgl/rlgl.exe e --id=${GITHUB_SHA:0:8} --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'