-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Stremio/dev-progress
Dev progress
- Loading branch information
Showing
40 changed files
with
162,931 additions
and
351 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,44 @@ | ||
name: Build Installer | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
# The Windows runners have autocrlf enabled by default | ||
# which causes failures for some of rustfmt's line-ending sensitive tests | ||
- name: disable git eol translation | ||
run: git config --global core.autocrlf false | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Rust Stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- name: Build main application | ||
run: cargo build --release | ||
- name: Build the setup proggam | ||
run: | | ||
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /DSIGN '/Sstremiosign=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe$q sign /f $q${{ github.workspace }}\certificates\smartcode-20211118-20241118.pfx$q /p ${{ secrets.WIN_CERT_PASSWORD }} /v $f' '${{ github.workspace }}\setup\Stremio.iss' | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | ||
aws-region: eu-west-1 | ||
|
||
- name: Upload to Amazon S3 | ||
run: | | ||
aws s3 cp --acl public-read ".\StremioSetup-v$((get-item .\StremioSetup*.exe).VersionInfo.ProductVersion.Trim()).exe" s3://stremio-artifacts/stremio-shell-ng/${{ github.ref_name }}/ | ||
- name: Generate RC descriptor | ||
run: | | ||
node ./generate_descriptor.js --wait-all --tag=${{ github.ref_name }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: stremio-setup | ||
path: StremioSetup-v*.exe |
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,27 @@ | ||
name: Continuous integration | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
steps: | ||
# The Windows runners have autocrlf enabled by default | ||
# which causes failures for some of rustfmt's line-ending sensitive tests | ||
- name: disable git eol translation | ||
run: git config --global core.autocrlf false | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Stable with rustfmt and clippy | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- name: Lint code format | ||
run: cargo fmt --all -- --check | ||
- name: Lint code | ||
run: cargo clippy --all -- -D warnings | ||
- name: Test | ||
run: cargo test | ||
|
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
/target | ||
/stremio*.exe |
Oops, something went wrong.