Skip to content

Commit

Permalink
Merge #784
Browse files Browse the repository at this point in the history
784: Update release build process r=jhelwig a=jhelwig



Co-authored-by: Jacob Helwig <[email protected]>
  • Loading branch information
bors[bot] and jhelwig authored Dec 17, 2021
2 parents 1447cd4 + 7518877 commit f7d8c1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
name: ui-dist
path: ui/dist
- name: Install nightly
- name: Install Rust
uses: actions-rs/[email protected]
with:
profile: minimal
Expand Down
47 changes: 15 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,38 +77,25 @@ jobs:
strategy:
matrix:
node-version:
- 13.x
- 16.13.1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache dir path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(cd ui && yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
name: Cache yarn
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'npm'
cache-dependency-path: ui/package-lock.json
- name: Install
run: |
cd ui
yarn install
- name: Lint
run: |
cd ui
yarn lint
npm install
- name: Build
run: |
cd ui
yarn build
- uses: actions/upload-artifact@v2
npm run build
- uses: actions/upload-artifact@v2.3.1
with:
name: ui-dist
path: ui/dist
Expand All @@ -125,17 +112,17 @@ jobs:
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v2.4.0
- uses: actions/download-artifact@v2.1.0
with:
name: ui-dist
path: ui/dist
- name: Install nightly
- name: Install Rust
uses: actions-rs/[email protected]
with:
toolchain: nightly
profile: minimal
override: true
- uses: actions/cache@v2
- uses: actions/cache@v2.1.7
name: Cache cargo
with:
path: |
Expand All @@ -147,8 +134,6 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Test
uses: actions-rs/[email protected]
env:
SKIP_UI_BUILD: true
with:
command: test
args: --verbose
Expand All @@ -157,17 +142,15 @@ jobs:
with:
command: build
args: --verbose --release
env:
SKIP_UI_BUILD: true
- name: Upload release artifact (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.3.1
with:
name: app_${{ matrix.os }}
path: target/release/sd2snes-lttp-rando-tracker.exe
- name: Upload release artifact
if: matrix.os != 'windows-latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.3.1
with:
name: app_${{ matrix.os }}
path: target/release/sd2snes-lttp-rando-tracker

0 comments on commit f7d8c1b

Please sign in to comment.