test github ci #5
Workflow file for this run
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
name: build-libs | |
on: | |
push: | |
branches: | |
- rust_rewrite | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --release --manifest-path=expander_compiler/ec_go_lib/Cargo.toml | |
- name: Push built libs to another branch | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
mkdir output | |
cp -r expander_compiler/target/release/*.a output/ | |
cd output | |
git init | |
echo https://github.com/${{ github.repository }}.git | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
git checkout -b rust-built-libs | |
git add . | |
git commit -m "Add built libs" | |
git push -f origin rust-built-libs |