Skip to content

Commit

Permalink
fix build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Slatcher committed Mar 1, 2020
1 parent 0a68617 commit ae54a77
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Yarn install
run: yarn install
working-directory: packages/game

- name: Yarn build
run: yarn build:prod
working-directory: packages/game

- name: Install musl
run: sudo apt-get install musl-tools

Expand All @@ -27,6 +19,14 @@ jobs:
- name: Cargo build
run: cargo build --target x86_64-unknown-linux-musl --release --verbose

- name: Yarn install
run: yarn install
working-directory: packages/game

- name: Yarn build
run: yarn build
working-directory: packages/game

- name: Make dist
run: ./scripts/make-dist.sh

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
working-directory: packages/game

- name: Yarn build
run: yarn build:prod
run: yarn build
working-directory: packages/game
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Yarn install
run: yarn install
working-directory: packages/game

- name: Yarn build
run: yarn build:prod
working-directory: packages/game

- name: Install musl
run: sudo apt-get install musl-tools

Expand All @@ -28,6 +20,14 @@ jobs:
- name: Cargo build
run: cargo build --target x86_64-unknown-linux-musl --release --verbose

- name: Yarn install
run: yarn install
working-directory: packages/game

- name: Yarn build
run: yarn build
working-directory: packages/game

- name: Make dist
run: ./scripts/make-dist.sh

Expand Down
1 change: 0 additions & 1 deletion scripts/make-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

mkdir -p turbo-hearts/assets/{auth,lobby,game}
cp target/x86_64-unknown-linux-musl/release/turbo-hearts turbo-hearts
cp packages/game/dist/* turbo-hearts/assets/game
cp -r assets turbo-hearts
tar czvf turbo-hearts.tgz turbo-hearts/
rm -rf turbo-hearts

0 comments on commit ae54a77

Please sign in to comment.