-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup duplicate workflow + fix dir
- Loading branch information
Showing
2 changed files
with
39 additions
and
38 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 |
---|---|---|
|
@@ -46,44 +46,44 @@ runs: | |
docker stop build-container | ||
docker rm build-container | ||
# should be used again after moving from projectserum/build to backpackapp/build | ||
- name: Install latest Git version (>= 2.18.0) for actions/checkout | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
shell: bash | ||
run: | | ||
apt-get update | ||
apt-get install software-properties-common -y | ||
add-apt-repository ppa:git-core/ppa | ||
apt update | ||
apt install git -y | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Setup go | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version-file: "go.mod" | ||
check-latest: true | ||
- name: Generate build artifacts for go bindings check | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
shell: bash | ||
run: anchor build | ||
working-directory: contracts | ||
- name: Check generated go bindings are up to date | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
shell: bash | ||
run: | | ||
go install github.com/gagliardetto/[email protected] | ||
./scripts/anchor-go-gen.sh | ||
git diff --stat --exit-code | ||
- name: Generate program_ids | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
shell: bash | ||
run: ./scripts/programs-keys-gen.sh | ||
- name: Generate build artifacts with custom program_ids | ||
if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
shell: bash | ||
run: anchor build | ||
working-directory: contracts | ||
# # should be used again after moving from projectserum/build to backpackapp/build | ||
# - name: Install latest Git version (>= 2.18.0) for actions/checkout | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# shell: bash | ||
# run: | | ||
# apt-get update | ||
# apt-get install software-properties-common -y | ||
# add-apt-repository ppa:git-core/ppa | ||
# apt update | ||
# apt install git -y | ||
# git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
# - name: Setup go | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
# with: | ||
# go-version-file: "go.mod" | ||
# check-latest: true | ||
# - name: Generate build artifacts for go bindings check | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# shell: bash | ||
# run: anchor build | ||
# working-directory: contracts | ||
# - name: Check generated go bindings are up to date | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# shell: bash | ||
# run: | | ||
# go install github.com/gagliardetto/[email protected] | ||
# ./scripts/anchor-go-gen.sh | ||
# git diff --stat --exit-code | ||
# - name: Generate program_ids | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# shell: bash | ||
# run: ./scripts/programs-keys-gen.sh | ||
# - name: Generate build artifacts with custom program_ids | ||
# if: ${{ inputs.image == '' && inputs.image-version == '' }} | ||
# shell: bash | ||
# run: anchor build | ||
# working-directory: contracts | ||
|
||
#save the contracts artifacts | ||
- name: Upload Artifacts | ||
|
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