-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build Selenium Manager in CI (for Windows, Linux, and…
… macOS) (#11102)
- Loading branch information
1 parent
7e0febb
commit d8ffd13
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
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,63 @@ | ||
name: build-selenium-manager | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
windows: | ||
name: "[Windows] Build selenium-manager" | ||
runs-on: windows-latest | ||
steps: | ||
- name: "Checkout project" | ||
uses: actions/checkout@master | ||
- name: "Build release" | ||
run: | | ||
cd rust | ||
cargo build --release | ||
- name: "Upload binary" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: selenium-manager_windows-x64 | ||
path: rust/target/release/selenium-manager.exe | ||
retention-days: 6 | ||
|
||
linux: | ||
name: "[Linux] Build selenium-manager" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout project" | ||
uses: actions/checkout@master | ||
- name: "Build release" | ||
run: | | ||
cd rust | ||
cargo build --release | ||
- name: "Tar binary (to keep executable permission)" | ||
run: | | ||
cd rust/target/release | ||
tar -cvf ../../../selenium-manager.tar selenium-manager | ||
- name: "Upload binary" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: selenium-manager_linux-x64 | ||
path: selenium-manager.tar | ||
retention-days: 6 | ||
|
||
macos: | ||
name: "[macOS] Build selenium-manager" | ||
runs-on: macos-latest | ||
steps: | ||
- name: "Checkout project" | ||
uses: actions/checkout@master | ||
- name: "Build release" | ||
run: | | ||
cd rust | ||
cargo build --release | ||
- name: "Tar binary (to keep executable permission)" | ||
run: | | ||
cd rust/target/release | ||
tar -cvf ../../../selenium-manager.tar selenium-manager | ||
- name: "Upload binary" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: selenium-manager_macos-x64 | ||
path: selenium-manager.tar | ||
retention-days: 6 |