From 7b91d5d274bc350f4d81cc8acbee07ca7972b248 Mon Sep 17 00:00:00 2001 From: Ashy5000 <76829164+Ashy5000@users.noreply.github.com> Date: Sat, 13 Apr 2024 09:06:10 -0700 Subject: [PATCH] Adds environment variables to build step in Github Actions --- .github/workflows/go.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d6d8c04..0336424 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,15 +21,11 @@ jobs: go-version: '1.22.0' - name: Install OpenQuantumSafe run: git clone --depth=1 https://github.com/open-quantum-safe/liboqs; cmake -S liboqs -B liboqs/build -DBUILD_SHARED_LIBS=ON; cmake --build liboqs/build; sudo cmake --build liboqs/build --target install - - name: Setup OpenQuantumSafe - run: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib - name: Install liboqs-go run: git clone --depth=1 https://github.com/open-quantum-safe/liboqs-go - - name: Setup liboqs-go - run: export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/liboqs-go/.config - name: Set up test key file run: touch key.json; echo '{"P":176710961577974071832521516734948107434379290995054135678377926887468534652958472697367075354324461719668324807851175357710861424103511736494721487722521618661979189861666974900286919265752882755081888239631041261926087712955187153895044444139262602098274193464612287778145417585243732456223702980252482800607,"Q":936740874907832322597073450305505540686093890839,"G":66338311998643740385592236297523734607291072262747574002827806646765759347578028906262545335254698340865022790720236359111635375690506312853546869479901979625966397642498694334404414779727800645079381176552870763788174643332992237364701458853360770858316912247987518479326167293393641172504050429292469552362,"Y":64244278129796220984308516308581584308703712837003863598763156309553886525253628558079316628219151041190800669874808521243184174440995125855239453773862898510844631551127581148179655008701275119233851325142282163446843934153132074289854988558134281847156797444608405282138915527468485562006937260313806116514,"X":168338422700846386557052656420636674919045077559}' > key.json - name: Build - run: env GOOS=linux GOARCH=amd64 go build -v -o builds/node/node_linux_x86_64 + run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/libenv PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/liboqs-go/.config GOOS=linux GOARCH=amd64 go build -v -o builds/node/node_linux_x86_64 - name: Test run: go test -v