Skip to content

Commit

Permalink
test github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
siq1 committed Aug 14, 2024
1 parent a188643 commit a883337
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_libs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 subcrate/target/release/*.a output/
cd output
git init
git remote add origin https://github.com/${{ github.repository }}.git
git checkout -b rust-built-libs
git add .
git commit -m "Add built libs"
git push -f origin built-libs

0 comments on commit a883337

Please sign in to comment.