-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "build-*" | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: taiki-e/create-gh-release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
build: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Installing Dependencies | ||
if: ${{ runner.os == 'Linux' }} | ||
run: sudo apt-get install libx11-xcb-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev | ||
|
||
- uses: taiki-e/upload-rust-binary-action@v4 | ||
with: | ||
bin: csync,csyncd | ||
tar: unix | ||
zip: windows | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:22.04 AS builder | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y libx11-xcb-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev | ||
RUN apt-get install -y git gcc curl | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup-init.sh \ | ||
&& chmod u+x /tmp/rustup-init.sh \ | ||
&& sh /tmp/rustup-init.sh -y \ | ||
&& rm /tmp/rustup-init.sh | ||
|
||
WORKDIR /usr/src/sync | ||
COPY . . | ||
|
||
RUN ~/.cargo/bin/cargo build --release --package csync --target x86_64-unknown-linux-gnu --locked | ||
RUN mv ./target/x86_64-unknown-linux-gnu/release/csync ~/.cargo/bin/csync | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /root/.cargo/bin/csync /usr/local/bin | ||
|
||
ENTRYPOINT [ "/usr/local/bin/csync" ] |
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
This file was deleted.
Oops, something went wrong.
Empty file.