Skip to content

Commit cecb47c

Browse files
authored
Release merge 3.0.1
Release merge 3.0.1 Added Info, debug, error and warn statements for better debugging Fixed cheat so you can't press 0 to win No more empty Removed bug so now you can't get more than 3 scores in the scoreboard
2 parents 2071f3e + 8576650 commit cecb47c

11 files changed

+252
-161
lines changed
+7-135
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Rust
2-
32
on:
43
push:
54
branches:
@@ -11,14 +10,12 @@ on:
1110
- guessing-game-dev
1211
env:
1312
CARGO_TERM_COLOR: always
14-
1513
jobs:
1614
build:
1715
runs-on: ${{ matrix.os }}
1816
strategy:
1917
matrix:
2018
os: [ubuntu-latest, windows-latest, macos-latest]
21-
2219
steps:
2320
- uses: actions/checkout@v4
2421
- name: Build
@@ -28,142 +25,17 @@ jobs:
2825
- name: Build Artifact
2926
uses: actions/download-artifact@v4.1.8
3027
with:
31-
#name: #optional
32-
# Destination path. Supports basic tilde expansion. Defaults to $GITHUB_WORKSPACE
33-
#path: # optional
34-
# A glob pattern matching the artifacts that should be downloaded. Ignored if name is specified.
35-
#pattern: # optional
36-
# When multiple artifacts are matched, this changes the behavior of the destination directories. If true, the downloaded artifacts will be in the same directory specified by path. If false, the downloaded artifacts will be extracted into individual named directories within the specified path.
37-
#merge-multiple: # optional, default is false
38-
# The GitHub token used to authenticate with the GitHub API. This is required when downloading artifacts from a different repository or from a different workflow run. If this is not specified, the action will attempt to download artifacts from the current repository and the current workflow run.
39-
#github-token: # optional
40-
# The repository owner and the repository name joined together by "/". If github-token is specified, this is the repository that artifacts will be downloaded from.
4128
repository: ${{ github.repository }}
42-
# The id of the workflow run where the desired download artifact was uploaded from. If github-token is specified, this is the run that artifacts will be downloaded from.
4329
run-id: ${{ github.run_id }}
4430
- uses: actions/upload-artifact@v4
4531
with:
46-
# Name of the artifact to upload.
47-
# Optional. Default is 'artifact'
48-
name: artifact_linux
49-
50-
# A file, directory or wildcard pattern that describes what to upload
51-
# Required
52-
path: /home/runner/work/Guess-the-Door/Guess-the-Door/target/release/gessing_game
53-
54-
55-
# The desired behavior if no files are found using the provided path.
56-
# Available Options:
57-
# warn: Output a warning but do not fail the action
58-
# error: Fail the action with an error message
59-
# ignore: Do not output any warnings or errors, the action does not fail
60-
# Optional. Default is 'warn'
32+
name: build_${{ matrix.os }}
33+
path: |
34+
/home/runner/work/Guess-the-Door/Guess-the-Door/target/release/gessing_game
35+
D:\a\Guess-the-Door\Guess-the-Door\target\release\gessing_game.exe
36+
/Users/runner/work/Guess-the-Door/Guess-the-Door/target/release/gessing_game
6137
if-no-files-found: warn
62-
63-
# Duration after which artifact will expire in days. 0 means using default retention.
64-
# Minimum 1 day.
65-
# Maximum 90 days unless changed from the repository settings page.
66-
# Optional. Defaults to repository settings.
6738
retention-days: 90
68-
69-
# The level of compression for Zlib to be applied to the artifact archive.
70-
# The value can range from 0 to 9.
71-
# For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
72-
# Optional. Default is '6'
73-
compression-level: 6
74-
75-
# If true, an artifact with a matching name will be deleted before a new one is uploaded.
76-
# If false, the action will fail if an artifact for the given name already exists.
77-
# Does not fail if the artifact does not exist.
78-
# Optional. Default is 'false'
39+
compression-level: 9
7940
overwrite: false
80-
81-
# Whether to include hidden files in the provided path in the artifact
82-
# The file contents of any hidden files in the path should be validated before
83-
# enabled this to avoid uploading sensitive information.
84-
# Optional. Default is 'false'
85-
include-hidden-files: false
86-
87-
88-
- uses: actions/upload-artifact@v4
89-
with:
90-
# Name of the artifact to upload.
91-
# Optional. Default is 'artifact'
92-
name: artifact_windows
93-
94-
# A file, directory or wildcard pattern that describes what to upload
95-
# Required
96-
path: D:\a\Guess-the-Door\Guess-the-Door\target\release\gessing_game.exe
97-
98-
# The desired behavior if no files are found using the provided path.
99-
# Available Options:
100-
# warn: Output a warning but do not fail the action
101-
# error: Fail the action with an error message
102-
# ignore: Do not output any warnings or errors, the action does not fail
103-
# Optional. Default is 'warn'
104-
if-no-files-found: warn
105-
106-
# Duration after which artifact will expire in days. 0 means using default retention.
107-
# Minimum 1 day.
108-
# Maximum 90 days unless changed from the repository settings page.
109-
# Optional. Defaults to repository settings.
110-
retention-days: 90
111-
112-
# The level of compression for Zlib to be applied to the artifact archive.
113-
# The value can range from 0 to 9.
114-
# For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
115-
# Optional. Default is '6'
116-
compression-level: 6
117-
118-
# If true, an artifact with a matching name will be deleted before a new one is uploaded.
119-
# If false, the action will fail if an artifact for the given name already exists.
120-
# Does not fail if the artifact does not exist.
121-
# Optional. Default is 'false'
122-
overwrite: false
123-
124-
# Whether to include hidden files in the provided path in the artifact
125-
# The file contents of any hidden files in the path should be validated before
126-
# enabled this to avoid uploading sensitive information.
127-
# Optional. Default is 'false'
128-
include-hidden-files: false
129-
- uses: actions/upload-artifact@v4
130-
with:
131-
# Name of the artifact to upload.
132-
# Optional. Default is 'artifact'
133-
name: artifact_macos
134-
135-
# A file, directory or wildcard pattern that describes what to upload
136-
# Required
137-
path: /Users/runner/work/Guess-the-Door/Guess-the-Door/target/release/gessing_game
138-
139-
# The desired behavior if no files are found using the provided path.
140-
# Available Options:
141-
# warn: Output a warning but do not fail the action
142-
# error: Fail the action with an error message
143-
# ignore: Do not output any warnings or errors, the action does not fail
144-
# Optional. Default is 'warn'
145-
if-no-files-found: warn
146-
147-
# Duration after which artifact will expire in days. 0 means using default retention.
148-
# Minimum 1 day.
149-
# Maximum 90 days unless changed from the repository settings page.
150-
# Optional. Defaults to repository settings.
151-
retention-days: 90
152-
153-
# The level of compression for Zlib to be applied to the artifact archive.
154-
# The value can range from 0 to 9.
155-
# For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
156-
# Optional. Default is '6'
157-
compression-level: 6
158-
159-
# If true, an artifact with a matching name will be deleted before a new one is uploaded.
160-
# If false, the action will fail if an artifact for the given name already exists.
161-
# Does not fail if the artifact does not exist.
162-
# Optional. Default is 'false'
163-
overwrite: false
164-
165-
# Whether to include hidden files in the provided path in the artifact
166-
# The file contents of any hidden files in the path should be validated before
167-
# enabled this to avoid uploading sensitive information.
168-
# Optional. Default is 'false'
169-
include-hidden-files: false
41+
include-hidden-files: false

Cargo.lock

+165-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)