Skip to content

Commit

Permalink
Adds environment variables to build step in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashy5000 authored Apr 13, 2024
1 parent 0db3c0d commit 7b91d5d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7b91d5d

Please sign in to comment.