geforkt von mirrored/vaultwarden
Create Github build Actions
Dieser Commit ist enthalten in:
Ursprung
2545469713
Commit
13eb276085
3 geänderte Dateien mit 95 neuen und 0 gelöschten Zeilen
34
.github/workflows/rust-linux.yml
gevendort
Normale Datei
34
.github/workflows/rust-linux.yml
gevendort
Normale Datei
|
@ -0,0 +1,34 @@
|
|||
name: build-linux
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: install dependencies
|
||||
run: sudo apt update && sudo apt install --no-install-recommends openssl ca-certificates curl sqlite3
|
||||
- name: Cache
|
||||
uses: actions/cache@v1.0.3
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}
|
||||
- name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
profile: minimal
|
||||
target: x86_64-unknown-linux-gnu
|
||||
- name: Build x86_64-unknown-linux-gnu
|
||||
run: cargo build --verbose --features sqlite --release --target x86_64-unknown-linux-gnu
|
||||
- name: Run tests
|
||||
run: cargo test --features sqlite
|
||||
- name: Upload linux artifact
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: x86_64-unknown-linux-gnu-bitwarden_rs
|
||||
path: target/x86_64-unknown-linux-gnu/release/bitwarden_rs
|
30
.github/workflows/rust-mac.yml
gevendort
Normale Datei
30
.github/workflows/rust-mac.yml
gevendort
Normale Datei
|
@ -0,0 +1,30 @@
|
|||
name: build-mac
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Cache
|
||||
uses: actions/cache@v1.0.3
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}
|
||||
- name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
profile: minimal
|
||||
target: x86_64-apple-darwin
|
||||
- name: Build x86_64-apple-darwin
|
||||
run: cargo build --verbose --features sqlite --release --target x86_64-apple-darwin
|
||||
- name: Upload macOS artifact
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: x86_64-apple-darwin-bitwarden_rs
|
||||
path: target/x86_64-apple-darwin/release/bitwarden_rs
|
31
.github/workflows/rust-win.yml
gevendort
Normale Datei
31
.github/workflows/rust-win.yml
gevendort
Normale Datei
|
@ -0,0 +1,31 @@
|
|||
name: build-windows
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: install dependencies
|
||||
run: choco install sqlite openssl
|
||||
- name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
profile: minimal
|
||||
- name: Cache
|
||||
uses: actions/cache@v1.0.3
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}
|
||||
- name: Build
|
||||
run: cargo.exe build --verbose --features sqlite --release
|
||||
- name: Upload windows artifact
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: x86_64-pc-windows-bitwarden_rs
|
||||
path: target/release/bitwarden_rs.exe
|
Laden …
In neuem Issue referenzieren