Skip to content

Commit

Permalink
new temp CI for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 committed Jan 2, 2024
1 parent 877356d commit cdab35b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Create a new release

on:
push:
branches:
- fix/static_build
jobs:
test-release:
name: Build for Linux
runs-on: ubuntu-latest
container:
image: ekidd/rust-musl-builder
volumes:
- ${{ github.workspace }}:/home/rust/src
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@main
- name: Build-musl
run: |
echo "Building static binaries using ekidd/rust-musl-builder"
sudo chown rust -R /opt/rust/
rustup target add x86_64-unknown-linux-musl
RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" cargo build --release --features=auth
- name: run fastn
run: ./target/x86_64-unknown-linux-musl/release/fastn --version
- name: ls files
run: ls target/
run: ls target/x86_64-unknown-linux-musl/release/fastn
run: file target/x86_64-unknown-linux-musl/release/fastn
23 changes: 0 additions & 23 deletions ftd/github-stuff/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,6 @@ on:
- 'Cargo.*'
- 'rust-toolchain'
jobs:
test-release:
name: Build for Linux
runs-on: ubuntu-latest
container:
image: ekidd/rust-musl-builder
volumes:
- ${{ github.workspace }}:/home/rust/src
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@main
- name: Build-musl
run: |
echo "Building static binaries using ekidd/rust-musl-builder"
sudo chown rust -R /opt/rust/
rustup target add x86_64-unknown-linux-musl
RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" cargo build --release --features=auth
- name: run fastn
run: ./target/x86_64-unknown-linux-musl/release/fastn --version
- name: ls files
run: ls target/
run: ls target/x86_64-unknown-linux-musl/release/fastn
run: file target/x86_64-unknown-linux-musl/release/fastn
everything:
name: Rust Checks
runs-on: ubuntu-latest
Expand Down

0 comments on commit cdab35b

Please sign in to comment.