Skip to content

Commit

Permalink
[SOL] CI: Add a step to update the version
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Aug 4, 2024
1 parent fe918d3 commit 0c22ec4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update the version in the README
run: sed -i 's/# solana-zig-bootstrap v.*/# solana-zig-bootstrap v${{ inputs.version }}/' README.md
- name: Commit and push tag
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -am "Publish solana-v${{ inputs.version }}"
git tag -a solana-v${{ inputs.version }} -m "Tag solana-v${{ inputs.version }}"
git commit -am "[SOL] Publish solana-v${{ inputs.version }}"
git tag -a solana-v${{ inputs.version }} -m "[SOL] Tag solana-v${{ inputs.version }}"
git push origin --follow-tags
- name: Download tarballs into zig-bootstrap-solana/
uses: actions/download-artifact@v4
Expand All @@ -61,3 +63,4 @@ jobs:
with:
fail_on_unmatched_files: true
files: zig-*.tar.bz2
tag_name: solana-v${{ inputs.version }}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# bootstrap-zig-solana
# solana-zig-bootstrap v1.41.1

This repo bootstraps the Zig compiler against the Solana fork of LLVM, which
allows you to build Solana on-chain programs.
This repo bootstraps the Zig compiler against v1.41 of the
[Solana LLVM fork](https://github.com/anza-xyz/llvm-project/), which allows you
to build Solana on-chain programs.

The version on this repo follows the Solana LLVM version, with optional patch
versions to fix any issues that come up solely in this repo.

## Getting started

Expand Down

0 comments on commit 0c22ec4

Please sign in to comment.